c# - 检查 C# 项目的 VS 版本

标签 c# visual-studio

我有一个完整的 C# Visual Studio 项目,但由于 Visual Studio 的版本问题,我无法打开它。

我试过用VS2005和VS2010都打不开项目。

我在 VS2010 中转换项目时也遇到了错误。

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

__

编辑:

谢谢你的建议。

我已经按照建议查看了我的 csproj 文件:

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

据我所知,VS 版本。 used 最有可能是 2003 ver.

如有错误请指正

最佳答案

<ProductVersion> 中查找值在项目的 csproj 文件中标记。

这是一个 table with each product name and its corresponding version :

+---------------------------+---------------+-----------+----------------+
|<b>       Product name        |   Codename    | Version # | .NET Framework </b>| 
+---------------------------+---------------+-----------+----------------+
| 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# - 检查 C# 项目的 VS 版本,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8829542/

相关文章:

visual-studio - 是否可以将 Visual Studio TODO 注释任务自动转换为 Team Foundation 工作项?

c# - 如何在更改存储库路径后重置 HintPath

c# - 阅读文本的第二行

c# - 删除早于今天日期的文件

c# - 比较元组列表的最佳方法

c# - 转换参数C#/SQL Server失败

c# - 单例和实例锁定属性

c# - RichTextBox - InvalidOperationException : The calling thread must be STA

visual-studio - 有没有办法最大化 Visual Studio 中的当前选项卡?

c++ - Visual Studio C++ 预处理器定义失败,路径从 "u"开始