I began a project accidently selecting "Empty Web Application instead of "Empty MVC Application" in Visual Studio Express 2010. To convert it to an MVC, I have configured the global.asax, web.config, and setup the routes. However, when I attempt to add a new item, I am not given the option to "Add Controller" or within a Controller's function (i.e. public ActionResult Index), I am not given the option to "Create a View". Nor can I add an MVC Master page --- it automatically adds the code behind file as if it were a Web Form.
I understand this is because I select "Empty Web Application" to begin with but I'm wondering if there is anyway to convert this to an MVC project? Out of curiosity, how does Visual Studio know what type of project it is and where, if anywhere, can this be changed?
View Complete Post