Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ASP.Net MVC 1.0 in Visual Studio 2010

Is Visual Studio 2010 compatible with MVC 1.0


Hello guys,

Thanks for reading in advance.

I'm working with a MVC 1.0 project and VS2008.

I will be very glad to upgrade to VS2010, but I'm doubting about its compatibility with MVC 1.0.

Have you done it? How did it result?

like image 218
SDReyes Avatar asked Feb 09 '10 20:02

SDReyes


1 Answers

Everything seemed to be fine. I was able to get it to work, though it took a little bit of hacking.

  1. Convert the MVC 1.0 solution to MVC 2.0 using this tool.
  2. Open the upgraded solution in VS 2010.
  3. Remove the reference to MVC 2.0 and add a reference to the 1.0 version of System.Web.Mvc.dll you hopefully saved. Make sure to flag the "Copy Local" property of this 1.0 reference to true.
  4. Go through the [mvc project root]\Web.config and [mvc project root]\Views\Web.config files and change the version 2.0.0 to 1.0.0 anyplace you see a reference to System.Web.Mvc.
like image 150
ZaChickster Avatar answered Nov 01 '22 12:11

ZaChickster