Skip to content

Commit ef0d63a

Browse files
committed
Added ignore file pattern support for *.pp
1 parent 64e30b6 commit ef0d63a

File tree

6 files changed

+20
-10
lines changed

6 files changed

+20
-10
lines changed

MSBuild.NugetContentRestore.Tasks/NugetContentRestoreTask.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ public class NugetContentRestoreTask : Task
1919
#region Private Members
2020

2121
private readonly string[] _folders = new[] { "Scripts", "Images", "fonts", "content" };
22-
private readonly string[] _ignoreFilePatterns = new[] { "*.transform", "*.install.xdt" };
22+
private readonly string[] _ignoreFilePatterns = new[] { "*.transform", "*.install.xdt", "*.pp" };
2323

2424
private string _configFileFullPath;
2525
#endregion

MSBuild.NugetContentRestore.Tasks/Properties/AssemblyInfo.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,5 @@
1313
// The following GUID is for the ID of the typelib if this project is exposed to COM
1414
[assembly: Guid("1d75b795-214e-43cf-87ad-c34a814c2e57")]
1515

16-
[assembly: AssemblyVersion("0.1.1.2")]
17-
[assembly: AssemblyFileVersion("0.1.1.2")]
16+
[assembly: AssemblyVersion("0.1.3.0")]
17+
[assembly: AssemblyFileVersion("0.1.3.0")]

MSBuild.NugetContentRestore.nuspec

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,15 @@
22
<package>
33
<metadata>
44
<id>MSBuild.NugetContentRestore</id>
5-
<version>0.1.2</version>
5+
<version>0.1.3</version>
66
<authors>Francisco Lopez</authors>
77
<owners>Francisco Lopez</owners>
88
<projectUrl>https://github.com/panchilo/MSBuild.NugetContentRestore</projectUrl>
99
<licenseUrl>https://github.com/panchilo/MSBuild.NugetContentRestore#license</licenseUrl>
1010
<requireLicenseAcceptance>false</requireLicenseAcceptance>
1111
<description>MSBuild task to restore Nuget content files to project folder</description>
12-
<releaseNotes>Initial release</releaseNotes>
13-
<copyright>Copyright 2014 Francisco Lopez</copyright>
12+
<releaseNotes>Added ignore file pattern support for *.pp</releaseNotes>
13+
<copyright>Copyright 2014, Francisco Lopez</copyright>
1414
<tags>nuget content restore msbuild task</tags>
1515
</metadata>
1616
<files>

MSBuild.NugetContentRestore.targets

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
33

44
<PropertyGroup>
5-
<NugetContentRestorePath>$(SolutionDir)\packages\MSBuild.NugetContentRestore.0.1.2\build\net40\</NugetContentRestorePath>
5+
<NugetContentRestorePath>$(SolutionDir)\packages\MSBuild.NugetContentRestore.0.1.3\build\net40\</NugetContentRestorePath>
66
<NugetContentRestoreLib>$(NugetContentRestorePath)\MSBuild.NugetContentRestore.dll</NugetContentRestoreLib>
77
</PropertyGroup>
88

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ MSBuild task to restore Nuget content files to project folder
44
##Introduction
55
MSBuild.NugetContentRestore takes care of copying your Nuget content files to your project folder. This is helpful specially for HTML front-end packages like angularjs, bootstrap or any Nuget package that contains a Content folder.
66

7-
During installation of the front-end package (using Install-Package), all Package Content is copied to your project folder. The problem is that, in general, you don't want to check these files into your revision control system like git or svn. You would expect that "nuget restore" will also take care of copying the content files but this is not the case. This issue has been repetitively reported here:
7+
During installation of the front-end package (using Install-Package), all Package Content are copied to your project folder. The problem is that, in general, you don't want to check these files into your revision control system like git or svn. You would expect that "nuget restore" will also take care of copying the content files but this is not the case. This issue has been repetitively reported here:
88
- http://nuget.codeplex.com/workitem/2094
99
- http://nuget.codeplex.com/workitem/1239
1010

readme.txt

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,13 @@
1-
MSBuild.NugetContentRestore Readme.txt
2-
==============================================
1+
MSBuild.NugetContentRestore README
2+
==================================
33

4+
Congratulations! MSBuild.NugetContentRestore is now installed to your project.
5+
A reference to NugetContentRestoreTask has been added to your project.
6+
The only remaining step is to use it. Here is an example of how (and when) I use it.
7+
Edit your project file so it looks something like this:
8+
9+
<Target Name="BeforeBuild">
10+
<NugetContentRestoreTask SolutionDir="$(SolutionDir)" ProjectDir="$(ProjectDir)" />
11+
</Target>
12+
13+
All NuGet Packages Content Folders will be copied to your project folder right before is built.

0 commit comments

Comments
 (0)