Visual Studio 2010 Express no longer saves open tabs when closing solution
I'm using Visual Studio 2010 Express for Windows Phone. I've been using it for a few months without any problems. About a week ago, it stopped savi开发者_开发知识库ng my open tabs when I close Visual Studio. The next time I open the solution, it does not automatically open the files I had open when I last closed the solution. I'm not sure why it stopped working and I can't find the setting that controls this. Has anyone else run into this? If so, how did you get it to remember your open tabs again?
Show hidden files in solution folder in windows explorer and you will find visual studio *.suo file (it contains user related information). Delete it, after opening solution next time it will be recreated. Seems that sometimes there are problems with this file (for example you take this file from another user's machine via source control(by the way: DO NOT PUT IT INTO SOURCE CONTROL!)); this causes not only "not opening previous tabs", but other confusing things as well, like not be able to save "startup" project between visual studio restarts.
Even typical .ignore
file for source control suggests NOT to add it:
[Bb]in
*.user
*.suo
*.[Cc]ache
*.bak
*.ncb
*.log
*.pdb
*.DS_Store
[Tt]humbs.db
_ReSharper.*
*.resharper
Ankh.NoLoad
I just had the same problem. What I did to solve:
- Tools > Import and Export Settings
- Export your current settings but without 'General > Window Layouts'
Reset your settings via:
- Tools > Import and Export Settings > Reset all settings
Through the same menu, import your previously exported settings. That fixed the issue for me, hope it helps who gets it next.
I was never able to fix it, but a fresh install works correctly.
精彩评论