MVC4 and MVCContrib

2019-06-15 15:46发布

问题:

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.

回答1:

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.



回答2:

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 :)