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

102

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.

This question is tagged with visual-studio

~ Asked on 2012-12-23 12:24:40

The Best Answer is


67

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.

~ Answered on 2012-12-23 12:24:40


14

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.

~ Answered on 2013-02-05 05:23:03


Most Viewed Questions: