remember last programming session
-
2012年4月12日 13:50
Visual Studio 2010 used to remember the last programming session. When I reopened a project it would open the files I had open previously when I closed the project. Now it dosen't. I've seen threads that said to delete the *.suo of the project, but that didn't fix it.
Does anyone know why this useful feature has stopped working, or how to fix it?
Thanks in advance.
全部回复
-
2012年4月12日 14:19
Try resetting the settings.
Under Tools -> Import and Export Settings -> Reset all settings.
A.m.a.L Hashim

Dot Net Goodies
-
2012年4月12日 14:25版主
The open window information is stored in the .suo which is per-machine/per-user. If the file is corrupt then the information would be lost. To recover you would need to delete the .suo, open VS, open a window or two, close VS and then reopen it.
Possible scenarios that can cause this problem include:
- The .suo file is in source control preventing VS from editing it
- The .suo file is opened by another instance of VS
If the settings are still not being saved then try running in safemode (/safemode) to see if an addin is causing the .suo to not be updated properly.
Michael Taylor - 4/12/2012
http://msmvps.com/blogs/p3net
-
2012年4月18日 10:59版主Hi David,
How is it going now with our friends' suggestions?
We are looking forward to hearing from you.
Have a nice day,Leo Liu [MSFT]
MSDN Community Support | Feedback to us
-
2012年4月18日 15:32The reset did not work. I've deleted the .suo and open VS, opened a couple of windows and then closed and reopened the project. Nothing opens. Haven't had a chance to try in save mode yet.

