如何强制解决方案文件(SLN)在Visual Studio 2013中打开?

问题描述:

试图打开一个VS 2012的解决方案(SLN文件)明确地在VS 2013成功。只需双击它在Windows资源管理器打开还是它VS 2012来代替。

Trying to open a VS 2012 solution (SLN file) explicitely in VS 2013 succeeds. Simply double-clicking it in Windows Explorer still opens it in VS 2012 instead.

我读Visual工作室2012不转换VS2010的解决方案?跟着建议,另存为...解决方案文件

不过它在VS 2012在默认情况下打开。

Still it opens in VS 2012 by default.

我的问题:

如何改变一个SLN文件,以迫使它在Visual Studio 2013被打开?

How to change a SLN file to force it being opened in Visual Studio 2013?

的.sln 文件表示的的版本早之一行 - 例如:

The .sln file indicates the intended version as one of the early lines - for example:

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 2013

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 2012

但是 - 它只能利用这一点,如果对的.sln 文件的默认应用程序是微软的Visual Studio版本选择器。这并非罕见的默认的.sln 应用程序是一个具体的版本代替。在Windows 8:

However - it can only make use of this if the default application for .sln files is the "Microsoft Visual Studio Version Selector". It is not uncommon for the default .sln application to be a specific version instead. In windows 8:

您可以告诉这是默认的,因为它说:继续使用:

you can tell which is the default because it says "keep using":