Scaffolding/auto code generator completely broken?

送分小仙女□ 提交于 2019-12-31 07:04:11

问题


Completely stuck, bemused and flabbergasted here. We have three main PCs in the office, a test PC and also have the remote login PC. ALL of them are getting the same issue and we have no idea.

We suddenly can't do anything that involves auto code generation. If we try to add a controller with views with example, we get the error:

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

This happens in every single machine, including one that has never had Visual Studio installed on it before.

We've tried uninstalling, reinstalling, building 100s of times, checking for updates that may have installed for visual studio etc. We can't find anything that may have caused it.

We've been running visual Studio 2013 update four completely fine since around December. This is in ASP.net MVC using Entity Framework

Some help would be HUGELY appreciated


回答1:


This worked for me:

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



回答2:


Forgot I'd posted this! But for what it's worth to other people, it's to do with processors and settings in Visual Studio being different to each other.

Visual Studio MVC Platforms - x86 and x64?

See the link above for the solution



来源:https://stackoverflow.com/questions/29259374/scaffolding-auto-code-generator-completely-broken

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!