title: warning NETSDK1080: A PackageReference to Microsoft.AspNetCore.App is not necessary when targeting .NET Core 3.0 or higher
body: <p>How do I fix the nasty warning I'm getting when running .NET Core tests from a command line via <code>dotnet test</code>?</p>
  
  <p>The <code>dotnet --version</code> returns back <code>3.1.101</code>.</p>
  
  <blockquote>
    <pre class="lang-sh prettyprint-override"><code>$ dotnet test
  watch : Started
  C:\Program Files\dotnet\sdk\3.1.101\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.Sdk.DefaultItems.targets(151,5):
      warning NETSDK1080: A PackageReference to Microsoft.AspNetCore.App is not necessary when targeting
      .NET Core 3.0 or higher. If Microsoft.NET.Sdk.Web is used, the shared framework will be referenced automatically.
      Otherwise, the PackageReference should be replaced with a FrameworkReference.
      [C:\github\demo\Demo\SmartHome.API\SmartHome.API.csproj]
  C:\Program Files\dotnet\sdk\3.1.101\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.Sdk.DefaultItems.targets(151,5):
      warning NETSDK1080: A PackageReference to Microsoft.AspNetCore.App is not necessary when targeting
      .NET Core 3.0 or higher. If Microsoft.NET.Sdk.Web is used, the shared framework will be referenced automatically.
      Otherwise, the PackageReference should be replaced with a FrameworkReference.
      [C:\github\demo\Demo\SmartHome.API\SmartHome.API.csproj]
  Test run for C:\github\demo\Demo\SmartHome.API.Test\bin\Debug\netcoreapp3.1\SmartHome.API.Test.dll(.NETCoreApp,Version=v3.1)
  Microsoft (R) Test Execution Command Line Tool Version 16.3.0
  Copyright (c) Microsoft Corporation.  All rights reserved.
  
  Starting test execution, please wait...
  
  A total of 1 test files matched the specified pattern.
  </code></pre>
  </blockquote>
  
  <p>Here's what my <code>SmartHome.API.Test.csproj</code> looks like.</p>
  
  <pre class="lang-xml prettyprint-override"><code>&lt;Project Sdk="Microsoft.NET.Sdk"&gt;
  
    &lt;PropertyGroup&gt;
      &lt;TargetFramework&gt;netcoreapp3.1&lt;/TargetFramework&gt;
  
      &lt;IsPackable&gt;false&lt;/IsPackable&gt;
    &lt;/PropertyGroup&gt;
  
    &lt;ItemGroup&gt;
      &lt;PackageReference Include="FluentAssertions" Version="5.10.0" /&gt;
      &lt;PackageReference Include="Microsoft.NET.Test.Sdk" Version="16.2.0" /&gt;
      &lt;PackageReference Include="MongoDB.Driver" Version="2.10.1" /&gt;
      &lt;PackageReference Include="xunit" Version="2.4.0" /&gt;
      &lt;PackageReference Include="xunit.runner.visualstudio" Version="2.4.0" /&gt;
      &lt;PackageReference Include="coverlet.collector" Version="1.0.1" /&gt;
    &lt;/ItemGroup&gt;
  
    &lt;ItemGroup&gt;
      &lt;ProjectReference Include="..\SmartHome.API\SmartHome.API.csproj" /&gt;
      &lt;ProjectReference Include="..\SmartHome.Models\SmartHome.API.Models.csproj" /&gt;
    &lt;/ItemGroup&gt;
  
  &lt;/Project&gt;
  </code></pre>
  
  <p>And this is the <code>SmartHome.API.csproj</code> which seems to be the source of the issue.</p>
  
  <pre class="lang-xml prettyprint-override"><code>&lt;Project Sdk="Microsoft.NET.Sdk.Web"&gt;
  
    &lt;PropertyGroup&gt;
      &lt;TargetFramework&gt;netcoreapp3.1&lt;/TargetFramework&gt;
    &lt;/PropertyGroup&gt;
  
    &lt;ItemGroup&gt;
      &lt;PackageReference Include="FluentValidation" Version="8.6.1" /&gt;
      &lt;PackageReference Include="Microsoft.AspNetCore.App" Version="2.2.8" /&gt;
      &lt;PackageReference Include="Microsoft.AspNetCore.Authentication.JwtBearer" Version="3.1.1" /&gt;
      &lt;PackageReference Include="MongoDB.Driver" Version="2.10.1" /&gt;
    &lt;/ItemGroup&gt;
  
    &lt;ItemGroup&gt;
      &lt;ProjectReference Include="..\SmartHome.Models\SmartHome.API.Models.csproj" /&gt;
    &lt;/ItemGroup&gt;
  
  &lt;/Project&gt;
  </code></pre>