Friday, January 22, 2016

Visual Studio .suo ==> there be dragons

Fought a weird problem today in Visual Studio 2015 and the Microsoft Git Extension to Visual Studio.

It really seems that the .suo file is involved with keeping state in Visual Studio because after deleting the file from source control, Visual Studio deleted all the source files from the local hard drive.

Here's the path to the .suo:
.vs\\v14\.suo

After checking out an earlier commit id (before the .suo was deleted) made Visual Studio happier.  The merge of the .suo back into the master branch kept complaining about nothing to commit and a

git push --force

was required to get the HEAD of the master branch happy again.

Moral Lesson:
- be careful deleting .suo from source control...

No comments: