Open paulomorgado opened 6 months ago
The immediate workaround is to add this to the csproj:
<PropertyGroup Condition="'$(DesignTimeBuild)' == 'true'">
<DefineConstants>$(DefineConstants);DESIGN_TIME_BUILD</DefineConstants>
</PropertyGroup>
And this to the program:
public static class Program
{
public static int Main(string[] args)
{
return new CakeHost()
#if !DESIGN_TIME_BUILD
.InstallTool(new Uri("dotnet:?package=Microsoft.Sbom.DotNetTool&version=2.*"))
#endif
.Run(args);
}
}
Does not prevent it.
Prerequisites
Cake runner
Cake Frosting
Cake version
4.0.0
Operating system
Windows
Operating system architecture
64-Bit
CI Server
No response
What are you seeing?
This happens when a Cake Frosting program has
InstallTool
withdotnet
.Visual Studio hold the
...\build\tools\.store\.stage
hostage:This doesn't happen when using
InstallTool
withnuget
.What is expected?
This happens with this simple program:
Steps to Reproduce
This happens when a Cake Frosting program has
InstallTool
withdotnet
.Visual Studio hold the
...\build\tools\.store\.stage
hostage.This doesn't happen when using
InstallTool
withnuget
.Output log