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
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
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