@@ -27,19 +27,19 @@ public static bool Resolve(
2727 [ NotNullWhen ( true ) ] out string ? path ,
2828 [ NotNullWhen ( true ) ] out LaunchArguments ? launchArguments )
2929 {
30- if ( TryResolveForOs ( tool , osSupport . Windows , out path , OSPlatform . Windows ) )
30+ if ( TryResolveForOs ( tool , osSupport . Windows , out path , "WINDOWS" ) )
3131 {
3232 launchArguments = osSupport . Windows . LaunchArguments ;
3333 return true ;
3434 }
3535
36- if ( TryResolveForOs ( tool , osSupport . Linux , out path , OSPlatform . Linux ) )
36+ if ( TryResolveForOs ( tool , osSupport . Linux , out path , "LINUX" ) )
3737 {
3838 launchArguments = osSupport . Linux . LaunchArguments ;
3939 return true ;
4040 }
4141
42- if ( TryResolveForOs ( tool , osSupport . Osx , out path , OSPlatform . OSX ) )
42+ if ( TryResolveForOs ( tool , osSupport . Osx , out path , " OSX" ) )
4343 {
4444 launchArguments = osSupport . Osx . LaunchArguments ;
4545 return true ;
@@ -54,11 +54,11 @@ static bool TryResolveForOs(
5454 string tool ,
5555 [ NotNullWhen ( true ) ] OsSettings ? os ,
5656 [ NotNullWhen ( true ) ] out string ? path ,
57- OSPlatform platform )
57+ string platform )
5858 {
5959 path = null ;
6060
61- if ( os == null || ! RuntimeInformation . IsOSPlatform ( platform ) )
61+ if ( os == null || ! OperatingSystemPolyfill . IsOSPlatform ( platform ) )
6262 {
6363 return false ;
6464 }
0 commit comments