Skip to content

Commit

Permalink
Don't produce symbols package for DotNetNuke.WebApi
Browse files Browse the repository at this point in the history
Since this package doesn't include any source, it can't include symbols.
  • Loading branch information
bdukes committed Apr 14, 2021
1 parent 4aa4cbd commit f8ed3ac
Showing 1 changed file with 11 additions and 4 deletions.
15 changes: 11 additions & 4 deletions Build/Tasks/CreateNugetPackages.cs
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ public override void Run(Context context)
{
// look for solutions and start building them
var nuspecFiles = context.GetFiles("./Build/Tools/NuGet/*.nuspec");
var noSymbolsNuspecFiles = context.GetFiles("./Build/Tools/NuGet/DotNetNuke.WebApi.nuspec");

context.Information("Found {0} nuspec files.", nuspecFiles.Count);

Expand All @@ -38,13 +39,19 @@ public override void Run(Context context)
ArgumentCustomization = args => args.Append("-SymbolPackageFormat snupkg"),
};

// loop through each nuspec file and create the package
nuspecFiles -= noSymbolsNuspecFiles;
foreach (var spec in nuspecFiles)
{
var specPath = spec.ToString();
context.Information("Starting to pack: {0}", spec);
context.NuGetPack(spec.FullPath, nuGetPackSettings);
}

context.Information("Starting to pack: {0}", specPath);
context.NuGetPack(specPath, nuGetPackSettings);
nuGetPackSettings.Symbols = false;
nuGetPackSettings.ArgumentCustomization = null;
foreach (var spec in noSymbolsNuspecFiles)
{
context.Information("Starting to pack: {0}", spec);
context.NuGetPack(spec.FullPath, nuGetPackSettings);
}
}
}
Expand Down

0 comments on commit f8ed3ac

Please sign in to comment.