Skip to content

Commit

Permalink
Don't fail with SDK trying to validate package on nugetize
Browse files Browse the repository at this point in the history
Make sure nugetize always sets EnablePackageValidation=false to avoid SDK attempting to validate a non-existent package

Fixes #482
  • Loading branch information
kzu committed May 17, 2024
1 parent e9443aa commit e94051b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/dotnet-nugetize/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,8 @@ 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",
// 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",
Expand Down

0 comments on commit e94051b

Please sign in to comment.