2012 by Kern Herskind Nightingale
Disclaimer: This is not tested thoroughly and I have only posted here for the benefit of people experimenting with MVC and Sitecore 6.6 technology preview.
I know there is no official MVC 4 support in the technology preview but I was looking at the upgrade path for a pure MVC application from MVC 3 to MVC 4 and it seemed almost to easy - here is what the ASP.NET team says you need to do: Upgrading an ASP.NET MVC 3 project to MVC 4.
I thought I would give it a go with my Sitecore 6.6 test rig and after a bit of configuration work it appeared to be working. Here is what I changed to get Sitecore to work with a MVC 4 project:
I used the /Views/Web.config from a vanilla MVC 4 project.
In the /Web.config (the one that is distributed with Sitecore as Web.config.MVC) I added these keys to the appSettings:
And changed these assembly version numbers in the system.web/compilation section:
And finally I had to add assembly bindings to make Sitecore use the correct MVC assemblies:
Kern is a Sitecore Specialist with more than 10 years experince achitecting and developing Sitecore solutions. Kern was awarded Sitecore MVP in 2009, 2011 and again in 2015.
Currently Kern is helping the Sitecore Product team in shaping the future of the platform.