VS corrupted .sln file?

旧巷老猫 提交于 2019-12-01 05:47:28

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.

Have you tried creating a new sln and importing all the projs? if it doesn't solve the corruption, it may point to a project with a problem.

Get copies of both versions of the file and use your favorite dif tool to see what's changed. sln files are xml (i.e. human readable), so it isn't too hard to figure out what happened.

Difficult to tell. A sln file is quite simple structured, if you open it with a text editor, check is everything looks all right to you.

Seems to me that the sln file could be in a conflicted state.

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