Skip to content

Commit

Permalink
Merge pull request #2111 from JoeRobich/enable-workload-resolver
Browse files Browse the repository at this point in the history
Add sentinel file to MSBuild to enable workload resolver
  • Loading branch information
JoeRobich authored Mar 8, 2021
2 parents 4510973 + 1241d5f commit 4c790f7
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 4c790f7

Please sign in to comment.