The error “This project is incompatible with the current version of visual studio” displayed

别来无恙 提交于 2019-12-18 13:54:23

问题


I installed Vs 2010 Express in my PC, and created a poject named myproject with .net 4.0, it works well in Vs 2010 Express.

Now I installed Vs 2012 Express in my PC, and open the project myproject and upgrade it to .net 4.5, it wells well in Vs 2012 Express too.

I delete the project myproject all files, then restore it from my old backup file, when I try to open the project from Vs 2010 Express, I get the following information.
"This project is incompatible with the current version of visual studio", why?

How can I open the project in Vs 2010 Express? I guess the Vs 2012 Express maybe mark the project as .net 4.5 and stored the information in the somewhere of hard drive. Although I restore the project myproject from old backup file, Vs 2010 Express still think it is a project of .net 4.5.

Thanks!


回答1:


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 with Visual Studio 2010, 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.




回答2:


I know this is a little old, but just in case the above solutions don't work: don't be an idiot like me and try to open an MVC project using "VS for Desktop" instead of "VS for Web" (or vice-versa), since it will give you the incompatible message.

I use TFS at my job and I tried to open a MVC project via the TFS Solution Explorer. I wasn't paying attention to which Visual Studio version I had open and since both IDE's look alike, I was confused at what was going on - a common mistake, I'm sure =P




回答3:


If you are getting the same error for a project which is actually an extension (.vsix), please install Microsoft Visual Studio 2012 SDK




回答4:


Installing KB2781514 - Update for Microsoft Visual Studio 2012 solved the problem for me.




回答5:


Check the directory that contains the solution file for an UpgradeLog.htm file. It will probably show what's wrong. In my case I tried to open an ASP.NET project, but the Web Developer Tools were not installed.

The Web Developer Tools can be installed afterwards by going to the Control Panel and to modify your existing Visual Studio installation. After adding Web Developer Tools the project opened without issues.




回答6:


I received this error because during the BizTalk install I did not check the Developer Tools and SDK checkbox. I went back and modified my installation and that error went away for me now.




回答7:


Trying to load a BizTalk Project in VS2012 without BizTalk installed on your developer machine, will result in this error and the projects will load. This should be the first thing you check.




回答8:


In my case the problem was the Component Model Cache (Visual Studio for C++).

in VS2013 it is located in

%localappdata%\Microsoft\VisualStudio\12.0\ComponentModelCache

in VS2015 in

%localappdata%\Microsoft\VisualStudio\14.0\ComponentModelCache

Rename this folder and restart visual studio.



来源:https://stackoverflow.com/questions/12782863/the-error-this-project-is-incompatible-with-the-current-version-of-visual-studi

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!