@@ -57,7 +57,7 @@ public override SdkResult Resolve(SdkReference sdkReference, SdkResolverContext
5757 return factory . IndicateFailure (
5858 new [ ]
5959 {
60- $ "Version { netcoreSdkVersion } of the SDK is smaller than the minimum version"
60+ $ "Version { netcoreSdkVersion } of the .NET Core SDK is smaller than the minimum version"
6161 + $ " { sdkReference . MinimumVersion } requested. Check that a recent enough .NET Core SDK is"
6262 + " installed, increase the minimum version specified in the project, or increase"
6363 + " the version specified in global.json."
@@ -67,14 +67,14 @@ public override SdkResult Resolve(SdkReference sdkReference, SdkResolverContext
6767 var minimumMSBuildVersionString =
6868 File . ReadAllLines ( Path . Combine ( netcoreSdkDir , "minimumMSBuildVersion" ) ) [ 0 ] ;
6969 var minimumMSBuildVersion = Version . Parse ( minimumMSBuildVersionString ) ;
70- if ( context . MSBuildVersion . CompareTo ( minimumMSBuildVersion ) == - 1 )
70+ if ( context . MSBuildVersion < minimumMSBuildVersion )
7171 {
7272 return factory . IndicateFailure (
7373 new [ ]
7474 {
75- $ "Version { netcoreSdkVersion } of the SDK requires at least version { minimumMSBuildVersionString } "
75+ $ "Version { netcoreSdkVersion } of the .NET Core SDK requires at least version { minimumMSBuildVersionString } "
7676 + $ " of msbuild. The current available version of msbuild is { context . MSBuildVersion . ToString ( ) } ."
77- + " Change the SDK specified in global.json to an older version that requires the msbuild"
77+ + " Change the .NET Core SDK specified in global.json to an older version that requires the msbuild"
7878 + " version currently available."
7979 } ) ;
8080 }
@@ -110,7 +110,7 @@ private bool IsNetCoreSDKSmallerThanTheMinimumVersion(string netcoreSdkVersion,
110110 return true ;
111111 }
112112
113- return FXVersion . Compare ( netCoreSdkFXVersion , minimumFXVersion ) == - 1 ;
113+ return FXVersion . Compare ( netCoreSdkFXVersion , minimumFXVersion ) < 0 ;
114114 }
115115
116116 private string ResolveNetcoreSdkDirectory ( SdkResolverContext context )
0 commit comments