I was getting the message "This project is incompatible with the current version of Visual Studio" from Visual Studio 2010. One situation resulting in this error has already been posted here. I'm thinking it's a fairly generic
problem, and since I have found a "solution", I'll post this question, and also my solution as an answer, in the hopes it is of help to others.
The Solution as folllows:
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.

本文提供了解决Visual Studio 2010打开.NET Framework 4.5项目的兼容性问题的方法,通过编辑.csproj文件将TargetFrameworkVersion从v4.5改为v4.0,允许项目加载,尽管可能因依赖4.5特性而引发编译错误。

4910

被折叠的 条评论
为什么被折叠?



