从其他电脑拷贝的项目,添加视图时就报这个错误了
![img](
vs2019 .net core添加视图时报运行所选代码生成器时出错,程序包还原失败
https://img-mid.csdnimg.cn/release/static/image/mid/ask/649003528236129.png
"=600 #left"- 写回答
- 好问题 0 提建议
- 关注问题
- 邀请回答
-
1条回答 默认 最新
CSDN专家-showbo 2021-09-28 20:26关注web.config中的nuget包可能你电脑上版本不一样。新建的core app添加视图有问题吗?
参考:
https://stackoverflow.com/questions/45906856/package-restore-failed-rolling-back-package-changesasp.net - There was an error running the selected code generator: 'Package restore failed'.Rolling back package changes for 'BankAccount' - Stack Overflow I have created new ASP .Net Core app named 'BankAccount' and when i used to create controller of type 'API controller with actions , using Entity Framework', it gives me the following error => The... https://stackoverflow.com/questions/57985132/there-was-an-error-running-the-selected-code-generator-package-restore-failed本回答被题主选为最佳回答 , 对您是否有帮助呢?解决 无用评论 打赏 举报