title: The current .NET SDK does not support targeting .NET Core 3.0 | 3.1 | 5.0 | 6.0
body: <p>I've just downloaded the release version of .NET Core 3.0.100<br>
  It was installed alongside older version that I have:</p>
  
  <p><a href="https://i.stack.imgur.com/DAwC5.png" rel="noreferrer"><img src="https://i.stack.imgur.com/DAwC5.png" alt="enter image description here"></a></p>
  
  <p>When I try to run <code>dotnet restore</code> for a project that targets .NET Core 3 (<code>&lt;TargetFramework&gt;netcoreapp3.0&lt;/TargetFramework&gt;</code>), I get this error  </p>
  
  <pre><code>C:\Program Files\dotnet\sdk\2.2.202\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.TargetFrameworkInference.targets(137,5): error NETSDK1045: The current .NET SDK does not support targeting .NET Core 3.0.  Either target .NET Core 2.2 or lower, or use a version of the .NET SDK that supports .NET Core 3.0.
  </code></pre>
  
  <p>I have a global.json file that explicitly states that I need the <code>3.0.100</code> SDK  </p>
  
  <pre><code>{
    "sdk": {
      "version": "3.0.100"
    }
  }
  </code></pre>
  
  <p>I know that I can edit the <code>MSBuildSDKsPath</code> env variable to point to the <code>3.0.100</code> SDK, and it works, but I don't want to do it, I have other projects on my machine that still need to use older versions of .NET Core.  </p>
  
  <p>Is there a way to make the <code>dotnet</code> tool use the SDK that's stated in <code>global.json</code> instead of the one in <code>MSBuildSDKsPath</code>?  </p>
  
  <p>Edit: I use Visual Studio Code</p>