“此项目与Visual Studio的当前版本不兼容" [英] "This project is incompatible with the current version of Visual Studio"

查看:931
本文介绍了“此项目与Visual Studio的当前版本不兼容"的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我从Visual Studio 2010中收到以下消息.

I was getting the below message from Visual Studio 2010.

此项目与Visual Studio的当前版本不兼容"

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

一种导致此错误的情况已经在Stackoverflow上发布,但是

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.

推荐答案

如果出现消息

该项目与Visual Studio的当前版本不兼容

This project is incompatible with the current version of Visual Studio

是由于试图打开一个针对.Net 4.5的项目,因此解决方案"或解决方法是编辑.csproj文件,并将TargetFrameworkVersion从"v4.5"更改为"v4.0".至少可以加载项目,尽管如果程序依赖于4.5功能,则可能会导致编译器错误.

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的当前版本不兼容"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆