Skip to content

Commit 716ba91

Browse files
committed
When running nugetize, never cleanup built packages
This is typically unnecessary regardless of what setting users use for cleanup.
1 parent aa25e6e commit 716ba91

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

src/dotnet-nugetize/Program.cs

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -72,8 +72,8 @@ int Run(string[] args)
7272
}
7373

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

9597
if (help)
9698
{

0 commit comments

Comments
 (0)