.Net Core 添加控制器报错的原因

在这里插入图片描述
VS居然报错:未能从远程源“http://go.microsoft.com/fwlink/?LinkID=206669/FindPackagesById()?id=‘Microsoft.VisualStudio.Web.CodeGeneration’&semVerLevel=2.0.0”检索有关“Microsoft.VisualStudio.Web.CodeGeneration”的信息。
“http://go.microsoft.com/fwlink/?LinkID=206669/FindPackagesById()?id=‘Microsoft.VisualStudio.Web.CodeGeneration’&semVerLevel=2.0.0”处的内容不是有效的 XML。
错误提示的很明显,是找不到Nuget包,于是在Nuget管理器中将默认的Nuget路径改为:https://api.nuget.org/v3/index.json 即可正常使用。

猜你喜欢

转载自blog.csdn.net/wo4641771/article/details/105312985