Updating to ASP.NET Core 2.0 - Packages are not compatible with netcoreapp2.0

后端 未结 3 1490
清酒与你
清酒与你 2021-02-06 23:36

I\'m trying to update to NET Core 2.0 but I\'m getting these errors on all the packages installed with the reference.

The problem, maybe:

I\'m g

相关标签:
3条回答
  • 2021-02-07 00:02

    You should install the new version of SDK. There are many solutions for this issue in GitHub such as https://github.com/dotnet/core/issues/1675

    0 讨论(0)
  • 2021-02-07 00:05

    Solved it by updating Visual Studio to it's latest version (for me it was 15.3.3)

    Also, make sure SDK is updated to version 2.0 and NuGet to its latest version.

    0 讨论(0)
  • 2021-02-07 00:07

    Also, this error can occur with an outdated version of nuget. Specifically, 4.0.0 exhibits this issue. Upgrading to 4.3.0 fixed the problem for me.

    VSTS agents seem to use 4.0.0, so to work around this, there is a nuget version installer task which you can run as part of your build step to upgrade the version of nuget running in your build pipeline.

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