MVC4 and MVCContrib

旧时模样 提交于 2019-12-08 16:15:00

问题


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



来源:https://stackoverflow.com/questions/12277270/mvc4-and-mvccontrib

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!