Skip to content

Commit

Permalink
Add sentinel file to MSBuild to enable workload resolver
Browse files Browse the repository at this point in the history
  • Loading branch information
JoeRobich committed Mar 8, 2021
1 parent 4510973 commit 1241d5f
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions build.cake
Original file line number Diff line number Diff line change
Expand Up @@ -371,6 +371,12 @@ Task("CreateMSBuildFolder")
source: CombinePaths(msbuildSdkResolverSourceFolder, "Microsoft.DotNet.MSBuildSdkResolver.dll"),
destination: CombinePaths(msbuildSdkResolverTargetFolder, "Microsoft.DotNet.MSBuildSdkResolver.dll"));

// Add sentinel file to enable workload resolver
FileHelper.WriteAllLines(
path: CombinePaths(msbuildSdkResolverTargetFolder, "EnableWorkloadResolver.sentinel"),
contents: new string[0]
);

if (Platform.Current.IsWindows)
{
CopyDotNetHostResolver(env, "win", "x86", "hostfxr.dll", msbuildSdkResolverTargetFolder, copyToArchSpecificFolder: true);
Expand Down

0 comments on commit 1241d5f

Please # to comment.