Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ASP.NET MVC 4 breaks ASP.NET MVC 3 projects

After installing the ASP.NET MVC 4 Developer Preview, I can no longer open MVC 3 projects, with the following error message:

The project type is not supported by this installation.

<ProjectTypeGuids> in my MVC 3 .csproj file looks right:

<ProjectTypeGuids>{E53F8FEA-EAE0-44A6-8774-FFD645390401};{349c5851-65df-11da-9384-00065b846f21};{fae04ec0-301f-11d3-bf4b-00c04f79efbc}</ProjectTypeGuids>

Is this a bug in the MVC 4 developer preview, or is something missing from my Visual Studio 2010 install? And how do I solve it? Should I rollback my MVC 4 install?

I have tried running devenv /ResetSkipPkgs and installed MVC 3 Tools Update, to no avail.

like image 349
Petrus Theron Avatar asked Jan 30 '12 08:01

Petrus Theron


People also ask

Should you split your ASP.NET MVC project into multiple projects?

It shouldn't! That's why it's designed in a modular way. In most web applications out there, we version and deploy all these assemblies (Web, BLL and DAL) together. So, separating a project into 3 projects does not add any values.

Is ASP.NET MVC discontinued?

ASP.NET MVC is no longer in active development.

What is Microsoft ASP.NET MVC 4?

ASP.NET MVC 4 is a framework for developing highly testable and maintainable Web applications that follow the Model-View-Controller (MVC) pattern. The framework encourages you to maintain a clear separation of concerns— views for UI, controllers for handling user input, and models for domain logic.


1 Answers

"" If you want to update your projects to MVC4, and open them as such in the visual studio, then ""

The solution is to change the projectType guids from

{E53F8FEA-EAE0-44A6-8774-FFD645390401}

to

{E3E379DF-F4C6-4180-9B81-6769533ABE47}

in the csproj file, after you install the mvc4 visual studio package.

like image 156
Casper Leon Nielsen Avatar answered Sep 25 '22 08:09

Casper Leon Nielsen