title: The current .NET SDK does not support targeting .NET Core 2.1.3
body: <p>I want to make sure that my application is built against .NET Core 2.1.3, so I installed version 2.1.401 of the SDK and set the <code>TargetFrameworkVersion</code> of the project to <code>2.1.3</code>.</p>
  
  <p>This gives me the following error message (emphasis mine):</p>
  
  <blockquote>
    <p>C:\Program Files\dotnet\sdk\<strong>2.1.401</strong>\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.TargetFrameworkInference.targets(137,5): error NETSDK1045: <strong>The current .NET SDK does not support targeting .NET Core 2.1.3.  Either target .NET Core 2.1 or lower, or use a version of the .NET SDK that supports .NET Core 2.1.3.</strong></p>
  </blockquote>
  
  <p>So the interesting thing is that the build seems to use the freshly installed SDK (2.1.401) - which is supposed to support .NET Core 2.1.3 - but it is still complaining that .NET Core 2.1.3 is not supported. This doesn't make sense to me...</p>
  
  <p>What could be wrong here?</p>