检查一个C#项目的VS版本 [英] Check VS version of a C# Project

查看:402
本文介绍了检查一个C#项目的VS版本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个完整的C#的Visual Studio项目,但我不能把它打开,由于视觉工作室的版本问题。



我一直在使用VS2005和VS2010试过,但都无法打开该项目。



我遇到错误而转换项目VS2010为好。



有没有,我可以找到使用的VS版本的任何文件?



__



编辑:



感谢您的建议



我有仔细看一下我的csproj文件中建议:



< XML版本?=1.0编码=UTF-8>
<项目的xmlns =http://schemas.microsoft.com/developer/msbuild/2003>



从我所看到的,VS版本。采用的是最有可能成为2003年版本。



请纠正我,如果我错了。


解决方案

查找在<的价值;的ProductVersion方式> 标记在项目的的csproj文件



下面是每个产品名称的表和它的相应版本



<预类=郎无prettyprint-覆盖> + --------------------------- + --------------- + ----------- + ---------------- +
| 产品名称|代号|版本#| .NET框架 |
+ --------------------------- + --------------- + - ---------- ---------------- + +
| Visual Studio的4.0 | N / A | 4.0。* | N / A |
|的Visual Studio 97 |波士顿| 5.0。* | N / A |
|的Visual Studio 6.0 |阿斯| 6.0。* | N / A |
| Visual Studio .NET中(2002)|雷尼尔| 7.0。* | 1 |
|的Visual Studio .NET 2003 |埃弗里特| 7.1。* | 1.1 |
| Visual Studio 2005中|惠德贝| 8.0。* | 2.0,3.0 |
| Visual Studio 2008中|逆戟鲸| 9.0。* | 2.0,3.0,3.5 |
| Visual Studio 2010中| DEV10 /罗萨里奥| 10.0 *。| 2.0 - 4.0 |
|的Visual Studio 2012 | Dev11 | 11.0。* | 2.0 - 4.5.2 |
|的Visual Studio 2013 | Dev12 | 12.0。* | 2.0 - 4.5.2 |
| Visual Studio的2015年| Dev14 | 14.0。* | 2.0 - 4.6 |
+ --------------------------- + --------------- + - ---------- ---------------- + +


I have a completed C# Visual Studio project but I am not able to open it due to version issue of the Visual Studios.

I have tried using VS2005 and VS2010, but both are unable to open the project.

I met errors while converting the project in VS2010 as well.

Is there any file which I could locate the version of VS used?

__

EDIT:

Thank you for the advices.

I have look through my csproj file as advised:

<?xml version="1.0" encoding="utf-8"?> <Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">

From what I see, the VS ver. used is most likely to be 2003 ver.

Please correct me if I am wrong.

解决方案

Look for the value in the <ProductVersion> tag in your project's csproj file.

Here's a table with each product name and it's corresponding version:

+---------------------------+---------------+-----------+----------------+
|       Product name        |   Codename    | Version # | .NET Framework | 
+---------------------------+---------------+-----------+----------------+
| Visual Studio 4.0         | N/A           | 4.0.*     | N/A            |
| Visual Studio 97          | Boston        | 5.0.*     | N/A            |
| Visual Studio 6.0         | Aspen         | 6.0.*     | N/A            |
| Visual Studio .NET (2002) | Rainier       | 7.0.*     | 1              |
| Visual Studio .NET 2003   | Everett       | 7.1.*     | 1.1            |
| Visual Studio 2005        | Whidbey       | 8.0.*     | 2.0, 3.0       |
| Visual Studio 2008        | Orcas         | 9.0.*     | 2.0, 3.0, 3.5  |
| Visual Studio 2010        | Dev10/Rosario | 10.0.*    | 2.0 – 4.0      |
| Visual Studio 2012        | Dev11         | 11.0.*    | 2.0 – 4.5.2    |
| Visual Studio 2013        | Dev12         | 12.0.*    | 2.0 – 4.5.2    |
| Visual Studio 2015        | Dev14         | 14.0.*    | 2.0 – 4.6      |
+---------------------------+---------------+-----------+----------------+

这篇关于检查一个C#项目的VS版本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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