Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Visual Studio 2010 does not reload open files

Prior to today, if I quit VS2010 and reopened it, my previously opened solution was loaded and any previously opened files were reloaded and displayed in their correct positions.

Now however, the solution is reopened but no files are reloaded. All the files I had open are closed.

I didn't change any settings or do anything specific to stop this behavior. Looking through the options dialog panels, I do not see anything that applies to this behavior.

What gives?

like image 713
rboarman Avatar asked Feb 10 '11 22:02

rboarman


3 Answers

This happened to me as well, but I didn't want to reset all my settings. So here are a couple things to try before that:

  1. Export your settings (Tools -> Import and Export Settings) and open the resulting file in a text editor. Search for a section starting with <Category name="Environment_WindowLayout". In my file, there were two places with a riduculous amount of duplicate <ViewBookmark entries. I deleted all but one in both places then I imported this file into VS and it fixed it for me. Note: I re-imported everything.

  2. Along the same lines as above, I read a post about exporting your current settings and then importing the resulting file but excluding window layouts (All Settings -> General Settings -> Window Layouts).

like image 174
kuroki Avatar answered Nov 17 '22 05:11

kuroki


Resetting VS2010 settings (in Tools choose Import and Export Settings) and deleting the suo file fixed the issue.

like image 14
rboarman Avatar answered Nov 17 '22 06:11

rboarman


You may have somehow lost your .suo file. Did you move your solution or anything?

like image 5
Mark Avenius Avatar answered Nov 17 '22 05:11

Mark Avenius