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

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

    This may work for readers attempting to upgrade a solution file to Visual Studio 2015. (I upgraded a VS 2012 solution.)

    1. Open the solution in VS 2015.
    2. Add a new project to the solution. (I added a test project.)
    3. Remove the project.
    4. Save the solution.

    You may want to delete the removed project folder at this time since step 3 did not delete it.

    This worked for me when neither zumey’s nor TCC’s answers did.

    EDIT

    Metro Smurf had a similar, but easier answer than mine for a similar question. His steps were:

    1. Open solution in VS 2015
    2. Right-click solution > Add > New Solution Folder (name does not matter)
    3. Save solution
    4. Delete the newly added solution folder
    5. Save solution

提交回复
热议问题