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

前端 未结 6 765
予麋鹿
予麋鹿 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:13

    I had a solution that had previously been upgraded from 2010 to 2013 successfully but still showed the .sln as associated with 2010.

    I tested all the methods given in this thread and the only one that successfully corrected the .sln was to open Visual Studio 2013 alone, then open the solution that still was associated with 2010 in the IDE, then use the [File] > [Save (name).sln as] to overwrite the existing .sln file.

    Setting the file assoc of the .sln to be the "Visual Studio version selector" made no change and the solution continued to open in 2010.

    The devenv (name).sln /upgrade method made no change to my .sln file.

    Hacking the raw text of the .sln file corrupted mine and it would not open at all.

提交回复
热议问题