Skip to content

Commit

Permalink
When running nugetize, never cleanup built packages
Browse files Browse the repository at this point in the history
This is typically unnecessary regardless of what setting users use for cleanup.
  • Loading branch information
kzu committed Nov 22, 2024
1 parent cfefd20 commit 7f35eb7
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/dotnet-nugetize/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,8 @@ int Run(string[] args)
}

// Built-in args we always pass to MSBuild
extra.AddRange(new[]
{
extra.AddRange(
[
// Avoids contention when writing to the dotnet-nugetize MSBuild items file
"-m:1",
// Enable retrieving source link info if supported by the project
Expand All @@ -83,14 +83,16 @@ int Run(string[] args)
"-p:EmitNuspec=true",
// Never emit the actual pkg since that would be the same as just running dotnet pack
"-p:EmitPackage=false",
// Never cleanup previously built packages
"-p:EnablePackCleanup=false",
// Avoid SDK trying to validate the output package since we don't emit it
"-p:EnablePackageValidation=false",
// DTB arguments that speed-up the execution
"-p:SkipCompilerExecution=true",
"-p:DesignTimeBuild=true",
"-p:DesignTimeSilentResolution=true",
"-p:ResolveAssemblyReferencesSilent=true"
});
]);

if (help)
{
Expand Down

0 comments on commit 7f35eb7

Please sign in to comment.