title: Azure Devops pipeline error in .net test .net core 2.2.0 framework project
body: <p>I am using the Azure Devops pipeline.
  From 2020/6/25, an error has occurred.</p>
  <p>task:dotnet test
  Error: The framework'Microsoft.NETCore.App', version '2.2.0' was not found.</p>
  <p>What I care about:
  When it was successful, the following display.</p>
  <pre><code>Welcome to .NET Core 3.1!
  ---------------------
  SDK Version: 3.1.300
  </code></pre>
  <p>Tasks when it starts to fail:</p>
  <pre><code>Welcome to .NET Core 3.1!
  ---------------------
  SDK Version: 3.1.301
  </code></pre>
  <p>The dotnet test portion of the Yml file is as follows
  version was used before the error. Added minorVersion and patchVersion, but they did not work.
  I added the x86 version of arguments, but it didn't work either.</p>
  <pre><code>pool:
  vmImage: 'windows-latest'
  
  variables:
  solution: '**/TamaWeb.sln'
  buildPlatform: 'Any CPU'
  buildConfiguration: 'Release'
  #  disable.coverage.autogenerate: 'true'
  
  steps:
  - task: NuGetToolInstaller@0
  inputs:
   versionSpec: '&gt;=5' 
   checkLatest: true
   
  - task: NuGetCommand@2
  inputs:
   restoreSolution: '$(solution)'
   
  - task: VSBuild@1
  inputs:
   solution: '$(solution)'
   msbuildArgs: '/p:DeployOnBuild=true /p:WebPublishMethod=Package /p:PackageAsSingleFile=true /p:SkipInvalidConfigurations=true /p:DesktopBuildPackageLocation=&quot;$(build.artifactStagingDirectory)\WebApp.zip&quot; /p:DeployIisAppPath=&quot;Default Web Site&quot;'
   platform: '$(buildPlatform)'
   configuration: '$(buildConfiguration)'
  
   task: DotNetCoreCLI@2
     displayName: dotnet test
     inputs:
       command: test
       # test core version
       # version: '2.2'
       majorVersion: '3' 
       minorVersion: '1' 
       patchVersion: '300' 
       arguments: '--configuration $(BuildConfiguration) /p:CollectCoverage=true /p:CoverletOutputFormat=cobertura --runtime win-x86'
       projects: '**/*[Tt]est/*[Tt]est.csproj'
    #   projects: '**/*Test/TamaCoreTest.csproj'
       nobuild: true
  </code></pre>
  <p>csproj file:</p>
  <pre><code>&lt;Project Sdk=&quot;Microsoft.NET.Sdk&quot;&gt;
  
    &lt;PropertyGroup&gt;
      &lt;TargetFramework&gt;netcoreapp2.2&lt;/TargetFramework&gt;
  
      &lt;IsPackable&gt;false&lt;/IsPackable&gt;
    &lt;/PropertyGroup&gt;
  
    &lt;ItemGroup&gt;
      &lt;PackageReference Include=&quot;coverlet.msbuild&quot; Version=&quot;2.8.1&quot;&gt;
        &lt;PrivateAssets&gt;all&lt;/PrivateAssets&gt;
        &lt;IncludeAssets&gt;runtime; build; native; contentfiles; analyzers; buildtransitive&lt;/IncludeAssets&gt;
      &lt;/PackageReference&gt;
      &lt;PackageReference Include=&quot;Microsoft.AspNetCore.Mvc.Abstractions&quot; Version=&quot;2.2.0&quot; /&gt;
      &lt;PackageReference Include=&quot;Microsoft.AspNetCore.Mvc.Core&quot; Version=&quot;2.2.5&quot; /&gt;
      &lt;PackageReference Include=&quot;Microsoft.AspNetCore.Mvc.ViewFeatures&quot; Version=&quot;2.2.0&quot; /&gt;
      &lt;PackageReference Include=&quot;Microsoft.NET.Test.Sdk&quot; Version=&quot;16.2.0&quot; /&gt;
      &lt;PackageReference Include=&quot;Moq&quot; Version=&quot;4.14.1&quot; /&gt;
      &lt;PackageReference Include=&quot;MSTest.TestAdapter&quot; Version=&quot;2.1.1&quot; /&gt;
      &lt;PackageReference Include=&quot;MSTest.TestFramework&quot; Version=&quot;2.1.1&quot; /&gt;
      &lt;PackageReference Include=&quot;NLog&quot; Version=&quot;4.7.0&quot; /&gt;
    &lt;/ItemGroup&gt;
  
    &lt;ItemGroup&gt;
      &lt;ProjectReference Include=&quot;..\XXX\AAA.csproj&quot; /&gt;
      &lt;ProjectReference Include=&quot;..\XXX\BBB.csproj&quot; /&gt;
      &lt;ProjectReference Include=&quot;..\XXX\CCC.csproj&quot; /&gt;
    &lt;/ItemGroup&gt;
  
    &lt;ItemGroup&gt;
      &lt;None Update=&quot;appsettings.test.json&quot;&gt;
        &lt;CopyToOutputDirectory&gt;PreserveNewest&lt;/CopyToOutputDirectory&gt;
      &lt;/None&gt;
    &lt;/ItemGroup&gt;
  
    &lt;ProjectExtensions&gt;&lt;VisualStudio&gt;&lt;UserProperties appsettings_1test_1json__JsonSchema=&quot;&quot; /&gt;&lt;/VisualStudio&gt;&lt;/ProjectExtensions&gt;
  
  &lt;/Project&gt;
  
  </code></pre>
  <p>Is it possible to specify the above SDK version with the dotnet test task?
  If you know another solution, please help.</p>