Skip to content

Commit

Permalink
Merge pull request cake-contrib#211 from ghuntley/patch-1
Browse files Browse the repository at this point in the history
fix: don't include tools/*.csproj when packing
  • Loading branch information
gep13 authored Apr 4, 2018
2 parents f8e1837 + a6b15cf commit 08ca8d0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Cake.Recipe/Content/nuget.cake
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ BuildParameters.Tasks.DotNetCorePackTask = Task("DotNetCore-Pack")
.Does(() =>
{
var projects = GetFiles(BuildParameters.SourceDirectoryPath + "/**/*.csproj")
- GetFiles(BuildParameters.SourceDirectoryPath + "/tools/**/*.csproj")
- GetFiles(BuildParameters.SourceDirectoryPath + "/**/*.Tests.csproj");

var msBuildSettings = new DotNetCoreMSBuildSettings()
Expand Down Expand Up @@ -185,4 +186,4 @@ BuildParameters.Tasks.PublishNuGetPackagesTask = Task("Publish-Nuget-Packages")
Error(exception.Message);
Information("Publish-Nuget-Packages Task failed, but continuing with next Task...");
publishingError = true;
});
});

0 comments on commit 08ca8d0

Please sign in to comment.