未找到 Microsoft.NETCore.App 2.0.0 框架

@zgcwkj  2021年08月23日

分类:

网站 代码 

The framework 'Microsoft.NETCore.App', version '2.0.0' was not found.

报错内容

It was not possible to find any compatible framework version
The framework 'Microsoft.NETCore.App', version '2.0.0' was not found.
  - The following frameworks were found:
      3.1.18 at [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
      5.0.9 at [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]

You can resolve the problem by installing the specified framework and/or SDK.

The specified framework can be found at:
  - https://aka.ms/dotnet-core-applaunch?framework=Microsoft.NETCore.App&framework_version=2.0.0&arch=x64&rid=win10-x64

只需要在项目添加Microsoft.EntityFrameworkCore.Design的引用(NuGet 获取),然后重新打开一遍就可以了!

主要的问题是,引用不明确导致的,不是缺少框架。



评论已关闭

Top