Search code examples
visual-studio-2017asp.net-core-2.2

How to resolve MSB3277 warning message in Visual Studio while building Test project in Visual Studio?


I am using XUnit project to test my .net core 2.2 web API project, but while building the application I got MSB3277 warning message.

enter image description here

Can anyone tell me how to resolve this issue?


Solution

  • Add reference without version to Microsoft.AspNetCore.App in your test project file.

    <PackageReference Include="Microsoft.AspNetCore.App" />