You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

.NET项目使用Controller Scaffolding报错:代码生成器运行失败,包还原失败

遇到Scaffolding创建控制器错误:"there was an error running the selected code generator package restore failed"

我尝试用Scaffolding创建控制器时,弹出错误提示:

there was an error running the selected code generator package restore failed

已经做了以下操作但问题仍未解决:

  • 确认所有EF相关NuGet包版本完全统一
  • 清理过NuGet缓存

附上相关截图:

恳请各位帮忙排查问题。

内容的提问来源于stack exchange,提问作者Saulo Torres

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.06.29 02:12:31