之前使用的VS2017,附带的.Net Core SDK是2.x的
迫于好多
不清楚有没有办法可以直接把.Net Core 3.x的SDK直接捞过来安装使用,没搜到攻略,怕踩坑。
现使用的方案是把VS2017卸载了,新安装VS2019,VS2019自带了.Net Core 3.x
注意事项:
1、卸载2017和安装2019要在Visual Studio Installler的程序中进行,2019的Installer要在官网下载,装community版本就ok了
2、.Net Core 3.x没有内置dotnet-ef的指令,所以我们只能通过安装dotnet 工具使用
安装指令
dotnet tool install --global dotnet-ef
若使用时仍有提示
It was not possible to find any compatible framework version
The framework ‘Microsoft.NETCore.App‘, version ‘3.1.2‘ was not found
原文:https://www.cnblogs.com/ogurayui/p/12425897.html