12

I have an ASP.NET MVC4 application solution (.sln). When I close Visual Studio and then reopen it and my solution, my tabs and my navigation structure in the solution explorer do not restore to the way they were.

The solution is big and it takes me a long time to reopen many tabs and open lots of folders in the solution explorer.

Is there an option in VS that would allow me to restore the solution to where it was when I left it?

I've already done "Reset all settings" in the Import and Export Settings Wizard, but it didn't help.

I've also tried booting VS in /SafeMode which disables any extensions. No difference.

Searching around I can't see anyone have similar issues.

Rowan Freeman
  • 15,724
  • 11
  • 69
  • 100
  • "Reset all settings" in the Import and Export Settings Wizard helped me thanks. Open tabs stopped being saved after last November update for VS 2013 for me. – Wollan Mar 13 '15 at 10:42

4 Answers4

17

As far as I know the .suo-File saves which files are opened. Try to delete this file (VS will generate it new) and make sure that windows-file-permissions are set correct (read, write access).

Micha
  • 5,117
  • 8
  • 34
  • 47
4

I had the same problem with Visual Studio 2013, and I solved it by doing this:

  • Export my current settings, making sure to UNMARK General Settings > Window Layouts.
  • Re-import the settings I just exported, but making sure I left General Settings > Window Layouts MARKED now (so it would overwrite the current Window Layouts with the "clean slate" of the imported settings.
Dan
  • 5,153
  • 4
  • 31
  • 42
0

Perhaps you can try the Workspace Reloader plugin that Scott Hanselman blogged about?

http://www.hanselman.com/blog/IntroducingWorkspaceReloaderAVisualStudioAddInToSaveYourOpenFilesAcrossProjectReloads.aspx

You can install it from here - http://visualstudiogallery.msdn.microsoft.com/6705affd-ca37-4445-9693-f3d680c92f38

Will L
  • 557
  • 1
  • 7
  • 17
  • 1
    I'm not sure if that extension solves my problem. It's interesting that Scott says "Visual Studio saves all your open files and window positions when you close the IDE and restores them when you open your solution" - mine does nothing of the sort. When I close VS, it doesn't "save" anything. – Rowan Freeman Sep 12 '13 at 00:58
  • @RowanFreeman Not sure if it'll help. But perhaps try resetting your environment settings? From the Tools Menu, select "Import and Export Settings". Choose the "Reset all settings" option. Then open a few tabs from your solution and then close your solution. Open it back up and see how that goes. – Will L Sep 12 '13 at 01:13
0

Got this issue also for Microsoft Visual Studio 2022 Community Edition.

How to fix :

First, be sure, that tools->Project and solutions->General:'Reopen documents on solution load' and 'Restore Solution Explorer project hierarchy state on solution load' enabled

Second, just close VS and delete .vs folder, then re-start VS.

Works fine for me

Nigrimmist
  • 10,289
  • 4
  • 52
  • 53