title: .Net Core 3.1 not yet supported in Azure Pipelines hosted agents? Getting NETSDK1045
body: <p>It's great that <a href="https://devblogs.microsoft.com/dotnet/announcing-net-core-3-1/" rel="noreferrer">.Net Core 3.1 is out</a>, but I'm not sure the Azure Pipelines hosted agents have caught up.</p>
  
  <p>My YAML pipeline specifies:</p>
  
  <pre><code>pool:
    vmImage: 'windows-latest'
  </code></pre>
  
  <p>and the <code>dotnet restore</code> step does this:</p>
  
  <blockquote>
    <p>(_CheckForUnsupportedNETCoreVersion target) ->  C:\Program
    Files\dotnet\sdk\3.0.100\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.TargetFrameworkInference.targets(127,5):
    error NETSDK1045: The current .NET SDK does not support targeting .NET
    Core 3.1.  Either target .NET Core 3.0 or lower, or use a version of
    the .NET SDK that supports .NET Core 3.1.
    [D:\a\1\s\StatsNZ.BESt.DataService\StatsNZ.BESt.DataService.csproj]</p>
  </blockquote>
  
  <p>works fine in .Net Core 3.0.</p>
  
  <p>Are there any work-arounds, or do we have to wait for Azure DevOps to catch up?</p>