title: ASP.NET Core: A compatible SDK version for global.json version 2.1.400 was not found
body: <p>I've got an ASP.NET Core project in my solution, targeting .NET Core 2.1. I've added a global.json file at the solution level: </p>
  
  <pre><code>{
    "sdk": {
      "version": "2.1.400"
    }
  }
  </code></pre>
  
  <p>On the Team City agent, I've installed MSBuild Tools 2017 (15.8.1), including .NET Core Build Tools. </p>
  
  <p>From the command line I can see SDK 2.1.400 is installed on the agent: </p>
  
  <pre><code>&gt;dotnet --list-sdks
  2.1.202 [C:\Program Files\dotnet\sdk]
  2.1.400 [C:\Program Files\dotnet\sdk]
  </code></pre>
  
  <p>However, building the solution fails on Team City with the following error: </p>
  
  <pre><code>dashboard.csproj : error : Unable to locate the .NET Core SDK. Check that it is installed and that the version specified in global.json (if any) matches the installed version.
  Dashboard.csproj : error MSB4236: The SDK 'Microsoft.NET.Sdk.Web' specified could not be found.
  A compatible SDK version for global.json version: [2.1.400] from [X:\agent-1\sandbox1\global.json] was not found
  </code></pre>
  
  <p>Any idea why it wouldn't find SDK 2.1.400 when building with MSBuild given it's present in the SDK list? </p>