Visual Studio如何确定解决方案文件的版本? [英] How can Visual Studio determine a solution file's version?

查看:312
本文介绍了Visual Studio如何确定解决方案文件的版本?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

认为我有两个解决方案:vs2009.sln和vs2010.sln.两个解决方案文件都具有相同的扩展名(.sln),但它们具有不同的图标.它们在Visual Studio的相关版本中打开.我想知道Visual Studio如何确定这一点吗?

Think that I have two solutions: vs2009.sln and vs2010.sln. Both of solution files have the same extension (.sln) but they have different icons. And they are opened in the related version of visual studio. I wonder how does visual studio determine this?

Visual Studio版本选择器还可以,但是我想知道即使扩展名相同,图标也怎么会不同?我以前知道每个扩展名在注册表HKEY_LOCAL_MACHINE \ SOFTWARE \ Microsoft \ Windows \ Current Version \ explorer \ Shell Icons中只有一个图标

Visual studio version selecter is ok but i wonder how can the icon be different even the extensions are same? I used to know that every extension has only one icon in registry HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\Current Version\explorer\Shell Icons

2.Edit:我终于找到了答案.如果有人对此感到疑惑,答案在此处 http://msdn.microsoft. com/en-us/library/cc144122%28VS.85%29.aspx

2. I found the answer finally. If anyone wonders about that, the answer is here http://msdn.microsoft.com/en-us/library/cc144122%28VS.85%29.aspx

推荐答案

使用记事本或其他文本编辑器打开.sln文件.在与Visual Studio版本相关的第一行中查找Format Version.这是我熟悉的一些东西:

Open your .sln file with Notepad or another text editor. Look for Format Version on the first line which correlates with a Visual Studio version. Here's some that I'm familiar with:

  • 格式版本8.00是Visual Studio 2003
  • 格式版本9.00是Visual Studio 2005
  • 格式版本10.00是Visual Studio 2008
  • 格式版本11.00是Visual Studio 2010
  • 格式版本12.00是Visual Studio 2013

这篇关于Visual Studio如何确定解决方案文件的版本?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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