From e94051bbb653f0203e5f67e4554c1ee6b748a380 Mon Sep 17 00:00:00 2001 From: Daniel Cazzulino Date: Fri, 17 May 2024 16:18:10 -0300 Subject: [PATCH] Don't fail with SDK trying to validate package on nugetize Make sure nugetize always sets EnablePackageValidation=false to avoid SDK attempting to validate a non-existent package Fixes #482 --- src/dotnet-nugetize/Program.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/dotnet-nugetize/Program.cs b/src/dotnet-nugetize/Program.cs index b9e1365a..bdbd40ad 100644 --- a/src/dotnet-nugetize/Program.cs +++ b/src/dotnet-nugetize/Program.cs @@ -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",