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 获取),然后重新打开一遍就可以了!
主要的问题是,引用不明确导致的,不是缺少框架。
版权属于:zgcwkj
本文链接:https://blog.zgcwkj.cn/archives/174.html
转载声明:请注明本文章的标题及内容的出处和声明,谢谢
评论已关闭