How to force a Solution file (SLN) to be opened in Visual Studio 2013?

前端 未结 6 762
予麋鹿
予麋鹿 2020-11-27 14:57

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.

I\'ve r

6条回答
  •  悲&欢浪女
    2020-11-27 15:30

    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
    

    or:

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

    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:

    enter image description here

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

    enter image description here

    enter image description here

提交回复
热议问题