今天安装了VS2019,准备新建个项目练练手,没想到在第一步添加Controller的时候就卡主了,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。

这让我很忧伤,连个HelloWord都写不了。

错误提示的很明显,是找不到Nuget包,于是在Nuget管理器中将默认的Nuget路径改为:https://api.nuget.org/v3/index.json 即可正常使用。

相关文章:

  • 2021-12-13
  • 2021-09-12
  • 2021-11-23
  • 2022-12-23
  • 2022-01-20
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-12-24
  • 2021-12-06
  • 2022-01-01
  • 2022-12-23
  • 2021-10-01
  • 2021-05-20
相关资源
相似解决方案