如何强制在 Visual Studio 2013 中打开解决方案文件 (SLN)? [英] How to force a Solution file (SLN) to be opened in Visual Studio 2013?
问题描述
尝试在 VS 2013 中显式打开 VS 2012 解决方案(SLN 文件)成功.只需在 Windows 资源管理器中双击它仍然会在 VS 2012 中打开它.
Trying to open a VS 2012 solution (SLN file) explicitly in VS 2013 succeeds. Simply double-clicking it in Windows Explorer still opens it in VS 2012 instead.
我已阅读Visual Studio 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
文件的默认应用程序是Microsoft 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":
这篇关于如何强制在 Visual Studio 2013 中打开解决方案文件 (SLN)?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!