visual-studio 我如何知道上次使用哪个版本的 Visual Studio 处理项目?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/3113458/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
How can I tell what version of Visual Studio was last used to work on a project?
提问by Ben Hocking
I'm working with some older code, and I think the person who last built it was using Visual Studio 6. There's no .vcproj file, but the .dsp and .dsw files have the following headers: (.dsp)
我正在处理一些较旧的代码,我认为上次构建它的人使用的是 Visual Studio 6。没有 .vcproj 文件,但 .dsp 和 .dsw 文件具有以下标题:(.dsp)
# Microsoft Developer Studio Project File - Name="[redacted]" - Package Owner=<4>
# Microsoft Developer Studio Generated Build File, Format Version 6.00
(.dsw)
(.dsw)
Microsoft Developer Studio Workspace File, Format Version 6.00
Does the "Format Version 6.00" correspond to Visual Studio 6?
“格式版本 6.00”是否对应于 Visual Studio 6?
回答by Drew Noakes
The the solution/VS version matrix is:
解决方案/VS 版本矩阵是:
- VS 6.0 -> 6.0
- VS 2002 -> 7.0
- VS 2003 -> 8.0
- VS 2005 -> 9.0
- VS 2008 -> 10.0
- VS 2010 -> 11.0
- VS 2012 -> 12.0
- VS 2013 -> 10.0 to 12.0
- VS 2015 -> 10.0 to 14.0
- VS 2017 -> 10.0 to 15.0
- VS 6.0 -> 6.0
- VS 2002 -> 7.0
- VS 2003 -> 8.0
- VS 2005 -> 9.0
- VS 2008 -> 10.0
- VS 2010 -> 11.0
- VS 2012 -> 12.0
- VS 2013 -> 10.0 到 12.0
- VS 2015 -> 10.0 到 14.0
- VS 2017 -> 10.0 到 15.0
Compatibility between solutions does not guarantee compatibility between projects. Check the Visual Studio 2013 Compatibilitydocument for more detail.
解决方案之间的兼容性并不能保证项目之间的兼容性。查看Visual Studio 2013 兼容性文档以获取更多详细信息。
回答by Caladain
I opened a VisStudio 6.0 dsw file i have, and it reads Format Version 6.00.
我打开了一个 VisStudio 6.0 dsw 文件,它读取格式版本 6.00。
I opened a VisStudio 2008 sln file i have, and it reads Format Version 10.00.
我打开了一个 VisStudio 2008 sln 文件,它显示格式版本 10.00。
So i assume so?
所以我假设是这样?
It corresponds. if 6.0 is version 6.0, then Visual Studio .NET (2002) is 7.0, Visual Studio .NET 2003 is 8.0, Visual Studio 2005 is 9.0, and Visual Studio 2008 is 10.00
它对应。如果 6.0 是版本 6.0,则 Visual Studio .NET (2002) 是 7.0,Visual Studio .NET 2003 是 8.0,Visual Studio 2005 是 9.0,Visual Studio 2008 是 10.00
回答by Shanid
When I opened the solution file of a project using a notepad, the version of visual studio was written on the top, with the Format version number, like this -
当我用记事本打开一个项目的解决方案文件时,上面写着visual studio的版本,还有Format版本号,像这样——
Microsoft Visual Studio Solution File, Format Version 10.00
#Visual Studio 2008
回答by outmind
Check the binary signatures in the compiled files.
By this you can get compiler version.
By compiler version you can get Visual Studio version.
检查编译文件中的二进制签名。
通过这个你可以得到编译器版本。
通过编译器版本,您可以获得 Visual Studio 版本。
By compiler I mean not only cl.exe, but resource compiler, linker, etc. Do you have some compiled materials?
编译器我指的不仅是cl.exe,还有资源编译器、链接器等。你有编译好的资料吗?

