Scaffolding/auto 代码生成器完全坏了?

Scaffolding/auto code generator completely broken?

完全卡在这里,困惑和目瞪口呆。我们办公室有三台主 PC,一台测试 PC,还有远程登录 PC。他们都遇到了同样的问题,我们不知道。

我们突然不能做任何涉及自动代码生成的事情。如果我们尝试使用示例添加带有视图的控制器,我们会收到错误:

There was an error running the selected code generator:
There was an error getting the type... Try rebuilding project'

每台机器都会发生这种情况,包括以前从未安装过 Visual Studio 的机器。

我们已尝试卸载、重新安装、构建 100 次,检查可能已为 visual studio 安装的更新等。我们找不到任何可能导致它的原因。

自 12 月左右以来,我们已经 运行 visual Studio 2013 更新四次完全正常。这是在 ASP.net MVC 中使用 Entity Framework

一些帮助将不胜感激

忘记我发布了这个!但对于其他人而言,它的价值在于 Visual Studio 中的处理器和设置彼此不同。

参见上面的 link 解决方案

这对我有用:

-Open your working project folder.
-Delete the BIN folder
-Delete OBJ folder
-Clean Solution, Rebuild Solution and try to Add Controller