Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

MVC4 and MVCContrib

Does MVCContrib currently support MVC4? I am having a first look at switching a project from MVC2 to MVC4 and having some issues with Portable Areas.

like image 882
user517406 Avatar asked Sep 05 '12 08:09

user517406


People also ask

What is mvc4?

ASP.NET MVC 4 is a framework for building scalable, standards-based web applications using well-established design patterns and the power of the ASP.NET and the . NET framework. This new, fourth version of the framework focuses on making mobile web application development easier.

Can I delete Microsoft ASP NET MVC 4 runtime?

YES. However, you absolutely do NOT want to remove the folder Controllers, because its existence is how ASP.NET MVC works in 99.99% of all apps.


2 Answers

In case anyone else comes across this post, you could try these:

http://nuget.org/packages/StudioDonder.MvcContrib.Mvc4/ http://nuget.org/packages/StudioDonder.MvcContrib.Mvc4.TestHelper/ etc.

with the source here: http://mvccontrib.codeplex.com/SourceControl/network/forks/ErikSchierboom/mvccontribmvc4

For each, they say: Note: this is a fork of the MvcContrib project that is suited for working with ASP.NET MVC 4.

like image 177
SGarratt Avatar answered Sep 22 '22 03:09

SGarratt


I can say from experience that it "sort of" works.

I'm working on a project where we were using the Mvc.Contrib.TestHelpers assembly, and in that case, I had to download the source code from Codeplex, update the MVC references from version 3 to version 4 and rebuild the project, then reference my rebuilt version of MvcContrib.

I hope that helps :)

like image 24
Nathanael Schulte Avatar answered Sep 22 '22 03:09

Nathanael Schulte