I have a dotnet core app that is targetting Microsoft.NETCore.App 1.1.2. I created a test project to test against that project but when building I noticed this warning:
I solved it by simply: Right clicking on Project (or ALT+ Enter) -> Properties -> Application -> Target Framework (Choose .NET Core framework (in this case 1.1))
I had same problem and I think, the problem is about the package.
<PackageReference Include="Microsoft.AspNetCore.App" />
The problem was resolved after I specified version exactly.
<PackageReference Include="Microsoft.AspNetCore.App" Version="2.2.0" />
As I know, that error is occured when the version number