ASP.Net MVC 1.0 in Visual Studio 2010

Compatible with Visual Studio 2010 with MVC 1.0


Hi guys,

Thanks for reading in advance.

I am working with MVC 1.0 and VS2008 project.

I will be very happy to switch to VS2010, but I doubt its compatibility with MVC 1.0.

You did it? How did it happen?

+7
c # visual-studio asp.net-mvc compatibility backwards-compatibility
source share
3 answers

Visual Studio 2010 will ship with ASP.NET MVC 2.0 out of the box, so it’s best to convert an existing 1.0 project to 2.0.

Your ASP.NET MVC 1.0 project should (almost) be fully compatible with ASP.NET MVC 2.0 (there are a small number of minor changes). All that is required to convert the project to ASP.NET MVC 2.0 is to change the GUID in the project file.

For more information on compatibility and conversion, see ASP.NET MVC 2.0 Release Notes .

+2
source share

Everything seemed to be in order. I was able to get it to work, although it hacked a bit.

  • Convert MVC 1.0 solution to MVC 2.0 using this tool .
  • Open the updated solution in VS 2010.
  • Remove the link to MVC 2.0 and add the link to the version of System.Web.Mvc.dll version 1.0 that you hoped to keep. Be sure to check the Copy Local property of this link 1.0 to true.
  • Go through the root of [mvc project root] \ Web.config and [mvc project root] \ Views \ Web.config and change version 2.0.0 to 1.0.0 anywhere you see the link to System.Web.Mvc.
+4
source share
<pages validateRequest="false" pageParserFilterType="System.Web.Mvc.ViewTypeParserFilter, System.Web.Mvc, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL" pageBaseType="System.Web.Mvc.ViewPage, System.Web.Mvc, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL" userControlBaseType="System.Web.Mvc.ViewUserControl, System.Web.Mvc, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL"> <controls> <add assembly="System.Web.Mvc, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL" namespace="System.Web.Mvc" tagPrefix="mvc" /> </controls> </pages> 

I replaced the links to System.Web.MVC, Version 2.0.0.0 with 1.0.0.0, but I was getting View not found errors, because System.Web.Mvc.ViewTypeParserFilter and System.Web.Mvc.ViewPage used Verision 2.0.0.0 in web.config.

0
source share

All Articles