@@ -23,15 +23,15 @@ public sealed class DotNetMSBuildSdkResolver : SdkResolver
23
23
{
24
24
public override string Name => "Microsoft.DotNet.MSBuildSdkResolver" ;
25
25
26
- // Default resolver has priority 10000 and we want to go before it and leave room on either side of us.
26
+ // Default resolver has priority 10000 and we want to go before it and leave room on either side of us.
27
27
public override int Priority => 5000 ;
28
28
29
29
private readonly Func < string , string ? > _getEnvironmentVariable ;
30
30
private readonly Func < string > ? _getCurrentProcessPath ;
31
31
private readonly Func < string , string , string ? > _getMsbuildRuntime ;
32
32
private readonly NETCoreSdkResolver _netCoreSdkResolver ;
33
33
34
- private const string DotnetHost = "DOTNET_HOST_PATH " ;
34
+ private const string DotnetHostExperimentalKey = "DOTNET_EXPERIMENTAL_HOST_PATH " ;
35
35
private const string MSBuildTaskHostRuntimeVersion = "SdkResolverMSBuildTaskHostRuntimeVersion" ;
36
36
37
37
private static CachingWorkloadResolver _staticWorkloadResolver = new ( ) ;
@@ -201,11 +201,11 @@ private sealed class CachedState
201
201
if ( File . Exists ( dotnetExe ) )
202
202
{
203
203
propertiesToAdd ??= new Dictionary < string , string ? > ( ) ;
204
- propertiesToAdd . Add ( DotnetHost , dotnetExe ) ;
204
+ propertiesToAdd . Add ( DotnetHostExperimentalKey , dotnetExe ) ;
205
205
}
206
206
else
207
207
{
208
- logger ? . LogMessage ( $ "Could not set '{ DotnetHost } ' because dotnet executable '{ dotnetExe } ' does not exist.") ;
208
+ logger ? . LogMessage ( $ "Could not set '{ DotnetHostExperimentalKey } ' because dotnet executable '{ dotnetExe } ' does not exist.") ;
209
209
}
210
210
211
211
string ? runtimeVersion = dotnetRoot != null ?
0 commit comments