aspnetcore3.1 dev时能运行但不能publish,使用EF orm框架时出现错误
The tool package could not be restored.
Tool 'dotnet-ef' failed to install. This failure may have been caused by:
* You are attempting to install a preview release and did not use the --version option to specify the version.
* A package by this name was found, but it was not a .NET Core tool.
* The required NuGet feed cannot be accessed, perhaps because of an Internet connection problem.
* You mistyped the name of the tool.
如果只是不能发布,请检查一下有没有安装包Microsoft.EntityFrameworkCore.Design
缺了这个包也是会报错的