Dinamico and MVC 4 Beta

Topics: Developer Forum
Apr 25, 2012 at 5:47 PM

I was curious to see how Dinamico would work with the MVC 4 Beta so I thought I would post my findings here in case someone else might be interested. 

I created a new MVC 4 Website project and added Dinamico using Nuget. It didn't work right away, so I had to make the following modifications:

  • updated the Razor version from 1.0.0.0 to 2.0.0.0 in the system.web.webPages.razor section of all web.config files under the Dinamico/Themes/[Theme Name]/Views folders.
  • removed the @ symbol from ViewBag.preferredSize in Dinamico\Themes\Default\Views\Shared\Partials\ContentLink.cshtml
  • changed @Html.Link(next) to Html.Link(next); in the Dinamico\Themes\Default\Views\Shared\TokenTemplates\NextSibling.cshtml file to get the links on the Nifty Search page to work.

I think the last two might be bugs that have been there for a while that were exposed by the new version of Razor. Once I made these minor changes the site loaded no problem at all. I haven't done extensive testing but so far so good!

-Barry