Skip to content

Commit 9e64a2c

Browse files
committed
keep older fallback for VS backcompat
1 parent ea7eee9 commit 9e64a2c

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/Resolvers/Microsoft.DotNet.MSBuildSdkResolver/MSBuildSdkResolver.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -247,6 +247,10 @@ private sealed class CachedState
247247
?? Path.Combine(dotnetRoot, RuntimeInformation.IsOSPlatform(OSPlatform.Windows) ? Constants.DotNetExe : Constants.DotNet);
248248
if (File.Exists(fullPathToMuxer))
249249
{
250+
// keeping this in until this component no longer needs to handle 17.14.
251+
propertiesToAdd ??= new Dictionary<string, string?>();
252+
propertiesToAdd.Add(DotnetHostExperimentalKey, fullPathToMuxer);
253+
// this is the future-facing implementation.
250254
environmentVariablesToAdd ??= new Dictionary<string, string?>(1)
251255
{
252256
[DOTNET_HOST] = fullPathToMuxer

0 commit comments

Comments
 (0)