From 1241d5fe1132fc2ec1afb0e4e656aab8dfcf1e1e Mon Sep 17 00:00:00 2001 From: Joey Robichaud Date: Mon, 8 Mar 2021 11:55:15 -0800 Subject: [PATCH] Add sentinel file to MSBuild to enable workload resolver --- build.cake | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/build.cake b/build.cake index 4eb6974137..de1e5461fb 100644 --- a/build.cake +++ b/build.cake @@ -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);