Skip to content

Commit

Permalink
Don't fail nugetize for tools
Browse files Browse the repository at this point in the history
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
  • Loading branch information
kzu committed Oct 19, 2022
1 parent ac7cc32 commit d2385df
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/dotnet-nugetize/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit d2385df

Please sign in to comment.