I'm working on a little project and after a while, my model and data context classes disappeared from the Add Controller window.
I have generated one controller with views normally before.
Of course, I have built, rebuilt, cleaned and rebuilt, cried, cursed and threatened my computer, none of them worked.
Some useful information (or not-so-useful):
- I'm using MVC4 Beta.
- I'm using VS2010, but I have VS11 Beta installed.
- I've used the "old" SPA Scaffolding, after I updated it and edited the templates this problem appeared.
- At first, I saw a gigantic list in the dropdown menus filled with classes from a few packages I've installed, namely DataAnnotations, WebActivator and json.NET. After I uninstalled them (since I wasn't using them yet),I got a "no model classes are available" message.
- I've added some Test Data to my data context class using a custom initializer.
Thank you very much.