From 073eae5fcdf62f923ac67099d4fe1c632df7ef55 Mon Sep 17 00:00:00 2001 From: Daniel Cazzulino Date: Wed, 19 Oct 2022 18:44:39 -0300 Subject: [PATCH] Don't fail nugetize for tools For dotnet tool projects, the design-time build we performed failed since the tool attempted to publish its output, which the project references weren't able to supply and the whole thing failed with missing files. We now pass IsPublishable=false to fake a sort of "DTB" for tools too, so they don't attempt to publish output. Fixes #247 --- src/dotnet-nugetize/Program.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/dotnet-nugetize/Program.cs b/src/dotnet-nugetize/Program.cs index c321bd2b..ab49d1cf 100644 --- a/src/dotnet-nugetize/Program.cs +++ b/src/dotnet-nugetize/Program.cs @@ -78,7 +78,8 @@ int Run(string[] args) "-p:SkipCompilerExecution=true", "-p:DesignTimeBuild=true", "-p:DesignTimeSilentResolution=true", - "-p:ResolveAssemblyReferencesSilent=true" + "-p:ResolveAssemblyReferencesSilent=true", + "-p:IsPublishable=false" }); if (help)