Visual Studio 2010 Express no longer saves open tabs when closing solution

我是研究僧i 提交于 2019-12-11 07:25:13

问题


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 saving 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?


回答1:


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



回答2:


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.




回答3:


I was never able to fix it, but a fresh install works correctly.



来源:https://stackoverflow.com/questions/4350701/visual-studio-2010-express-no-longer-saves-open-tabs-when-closing-solution

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!