Wednesday, November 27, 2013

Upgrade from ASP.NET MVC 4 to ASP.NET MVC 5

Personally, I think Microsoft makes a mistake in not making ASP.NET MVC 5 compatible with Visual Studio 2012. You need to follow the instructions in these 2 links to make it work:

http://www.asp.net/mvc/tutorials/mvc-5/how-to-upgrade-an-aspnet-mvc-4-and-web-api-project-to-aspnet-mvc-5-and-web-api-2

http://stackoverflow.com/questions/17926552/attempt-by-security-transparent-method-webmatrix-webdata-preapplicationstartcod

After giving it some thought, the underlying problem is that Visual Studio is highly coupled with specific versions of .NET (and there is no reason why it's done that way). After all, Visual Studio is just an IDE, and it (ideally) should be able to compile code for any version of .NET as long as you have the specific version of the .NET framework installed.


No comments: