Visual Studio 2017 cannot update Microsoft.NETCore.App package (“Blocked by project”)

前端 未结 8 1801
陌清茗
陌清茗 2020-12-08 18:22

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:

相关标签:
8条回答
  • 2020-12-08 18:42

    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))

    0 讨论(0)
  • 2020-12-08 18:44

    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

    0 讨论(0)
提交回复
热议问题