title: .net core 3.1 Azure devops Pipeline failed on nuget restore
body: <p>I am trying to create a pipeline for .NET core 3.1 web application and keep running into a problem at NuGet Restore step.</p>
  <p>Error is :</p>
  <blockquote>
  <p>Version 3.1.100 of the .NET Core SDK requires at least version 16.3.0
  of MSBuild. The current available version of MSBuild is 15.9.21.664.
  Change the .NET Core SDK specified in global.json to an older version
  that requires the MSBuild version currently available.</p>
  </blockquote>
  <p>My VS is updated at the latest version, MSBuild installed in dependencies are at 16.6.0 but it looks like it still targets (finds) only 15.9.21.664 and I have no idea why.</p>
  <p>My csproj project has these specifications</p>
  <pre><code>&lt;Project Sdk=&quot;Microsoft.NET.Sdk.Web&quot;&gt;
  
    &lt;PropertyGroup&gt;
      &lt;TargetFramework&gt;netcoreapp3.1&lt;/TargetFramework&gt;
    &lt;/PropertyGroup&gt;
  
    &lt;ItemGroup&gt;
      &lt;PackageReference Include=&quot;Microsoft.Build&quot; Version=&quot;16.6.0&quot; /&gt;
      &lt;PackageReference Include=&quot;Microsoft.Build.Framework&quot; Version=&quot;16.6.0&quot; /&gt;
      &lt;PackageReference Include=&quot;Microsoft.Build.Runtime&quot; Version=&quot;16.6.0&quot; /&gt;
      &lt;PackageReference Include=&quot;Microsoft.Build.Tasks.Core&quot; Version=&quot;16.6.0&quot; /&gt;
      &lt;PackageReference Include=&quot;Microsoft.Build.Utilities.Core&quot; Version=&quot;16.6.0&quot; /&gt;
    &lt;/ItemGroup&gt;
  
  &lt;/Project&gt;
  </code></pre>
  <p>If I understand it correctly, global.json is dropped in core 3+ and is sort of replaced by what is in csproj thus it should have right version 16+?</p>
  <p>I am also using the step &quot;Use .NET Core SDK 3.x&quot; before NuGet Restore as somebody pointed out in already discussed thread.</p>
  <p>Screenshot of my DevOps Pipeline:</p>
  <p><a href="https://i.stack.imgur.com/NP4wr.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/NP4wr.png" alt="enter image description here" /></a></p>
  <p>I am trying to get into DevOps and Azure...</p>