Installing ASP.NET MVC 3 after Visual Studio 2010 SP1
I had some problems installing the Visual Studio tools for ASP.NET MVC 3 after having applied SP1 for VS2010, but this workaround sorted out the problems for me.
ASP.NET MVC 3 installer fails on VS2010 SP1
First I tried installing ASP.NET MVC 3 through Web Platform Installer. It seemed to work, but I didn’t get any ASP.NET MVC 3 project templates in Visual Studio.
So, I dowloaded the ASP.NET MVC 3 installer, but that one failed. Looking at the log file it seemed it failed when trying to apply a Visual Studio 2010 update. My guess is that update isn’t required/doesn’t work if service pack 1 for Visual Studio 2010 has been installed (ASP.NET MVC 3 was released in January, VS 2010 SP1 was released in March).
Manually installing ASP.NET MVC 3 tools for Visual Studio
So, I started the ASP.NET MVC 3 installer, but I left it at the license agreement prompt (which looked kind of funky by the way):
Instead I went to the temp folder where the installer extracts its files and manually ran the aspnetmvc3vs2010tools.msi package (note that there’s a separate one for installing ASP.MVC 3 for Visual Web Developer).
That installed the MVC templates:
Next I ran the aspnetwebpages.msi and aspnetwebpagesvs2010tools.msi packages to get ASP.NET Pages with Razor support:
That’s it! Now I’m able to create new ASP.NET MVC3 projects using VS2010 SP1! :)