How to run ASP.NET MVC 1 and 2 on the same computer?

I developed the site using MVC 1, and then upgraded to MVC 2 Preview 1, and now when I open the site, I found an error:

The project type is not supported by this setting.

Since I want to use this project with version 1, but also want to create my new projects with version 2, how can I allow this already done project to run with ASP.NET MVC 1 when installing version 2?

I think the solution goes the way of solving some links in web.config, but I don’t know for sure.

+3
source share
1 answer

Guid csproj. MVC ( ) Guid. MVC 1.

:

  • , , - .
  • - . " "
  • , " .csproj"
  • ProjectTypeGuids, .
  • , .
  • , , , , MVC 1. , MVC 1 bin. GAC .

    <ProjectTypeGuids>{F85E285D-A4E0-4152-9332-AB1D724D3325};{349c5851-65df-11da-9384-00065b846f21};{fae04ec0-301f-11d3-bf4b-00c04f79efbc}</ProjectTypeGuids>
    

, MVC 2 Redirect Web.config. MVC 2 , " , ASP.NET MVC 1.0", .

+1

Source: https://habr.com/ru/post/1717871/


All Articles