VS损坏的.sln文件? [英] VS corrupted .sln file?
问题描述
当我尝试打开.sln文件时,Visual Studio退出.我可以通过打开TFS,获取特定版本,选择最新版本,强制覆盖,打开.sln文件,然后忽略不兼容的文档消息"来打开它.
但是,如果有一天我不能这样做,我想知道哪里出了问题以及如何解决.
如何解决?
我认为这更可能是.suo
(这是一个隐藏文件).已知它们已损坏(至少从VC ++ V6开始就是如此).删除它会清除VS中的各种奇怪/错误行为.
(.suo
保留本地设置:哪些文件处于打开和布局状态,断点,书签等等……仅是与解决方案或项目无关的东西.)
对于Visual Studio 2015和2017:现在不再与解决方案(.sln
)文件位于同一位置,而是将其保存在包含解决方案文件的文件夹中名为.vs
的隐藏文件夹中./p>
When I try to open my .sln file, Visual Studio quits on me. I can open it by opening up TFS, getting a specific version, choosing the latest version, forcing an overrwrite, opening up the .sln file, and then ignoring an 'incompatible doc message".
However, I would like to know what's wrong and how it can be fixed, in case some day I can't do this.
How can this be fixed?
I would think this is more likely to be the .suo
(which is a hidden file). These are know to corrupt (and this has been true since at least VC++ V6). Deleting it will clear all sorts of odd/erroneous behaviour in VS.
(The .suo
holds local settings: which files are open and layout, breakpoints, bookmarks, ... only: nothing that really matters to the solution or projects.)
For Visual Studio 2015 and 2017: rather than being in the same location as the solution (.sln
) file, it is now held in a, hidden, folder called .vs
in the folder containing the solution file.
这篇关于VS损坏的.sln文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!