Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

"This project is incompatible with the current version of Visual Studio"

I was getting the below message from Visual Studio 2010.

"This project is incompatible with the current version of Visual Studio"

One situation resulting in this error has already been posted here at Stackoverflow, but that question has been closed. I'm thinking it's a fairly generic problem. Since I have found a "solution", I'll post this question, and my solution as an answer.

like image 738
RenniePet Avatar asked Dec 23 '12 12:12

RenniePet


People also ask

How do you resolve an incompatible issue in Visual Studio?

Goto Tools > Extensions and updates > and search for integration/analysis/reporting (delete as applicable) and [enable] or [disable and then re-enable], close and restart VS. When you restart the projects will still show as incompatible, but right click and reload project seems to do the trick on each one.

How do I update a Visual Studio project?

To upgrade a project created in an earlier version of Visual Studio, just open the project in the latest version of Visual Studio. Visual Studio offers to upgrade the project to the current schema. If you choose No, the project doesn't get upgraded.


2 Answers

If the message

This project is incompatible with the current version of Visual Studio

is due to an attempt to open a project targeting .Net 4.5, then the "solution" or workaround is to edit the .csproj file and change the TargetFrameworkVersion from "v4.5" to "v4.0". That at least allows the project to be loaded, although it may result in compiler errors if the program is dependent on 4.5 features.

like image 119
RenniePet Avatar answered Sep 22 '22 15:09

RenniePet


VS 2012 has different project type support based on what you install at setup time and which edition you have. Certain options are available, e.g. web development tools, database development tools, etc. So if you're trying to open a web project but the web development tools weren't installed, it complains with this message.

This can happen if you create the project on another machine and try to open it on a new one. I figured it out trying to open an MVC project after I accidentally uninstalled the web tools.

like image 26
jstites Avatar answered Sep 25 '22 15:09

jstites