What is the "storage.ide" file beneath my Visual Studio solution folder, and what is "persistent storage"?

Visual StudioVersion ControlVisual Studio-2017

Visual Studio Problem Overview


I just installed Visual Studio 2017 15.3 preview, and now I'm noticing a new file beneath an existing solution that I've been working on:

.vs\[SOLUTION NAME]\v15\sqlite3\storage.ide

I'm wondering if I should be adding this to my version control repo, or if I should put it on the ignore list (i.e. if it's a user/setting based file, like .suo files). I've been googling trying to figure out what it is and what it does, but there's barely any info about it. I've searched things like "visual studio sqlite3 storage.ide" which have lead me to pages like this reference source for the SQLitePersistentStorageService class, so I gather it has something to do with code analysis, but I can't find any other information at all about the SQLitePersistentStorageService class.

What is this file for, and should I be keeping it in version control?

Visual Studio Solutions


Solution 1 - Visual Studio

Everything in the .vs folder should be excluded from your source repository. It is a folder created by Visual Studio for storing user specific information. Previously there was a .suo file which held this data.The change came from a UserVoice suggestion.

Additionally, there's a very useful GitHub repo that has common .gitignore files for various project types and you will see that the Visual Studio version completely excludes this folder too.

Solution 2 - Visual Studio

Even after adding the .vs folder like the answer correctly suggested, I still had issues with the storage.ide being in my branch and not being able to switch. I tried clearing the git cache like this answer suggested, but it was still blocking me switching branches.

I soon realised though that I was the one being stupid and I had VS2015 and VS2017 open with the same project (and obviously same repo) and 2017 was blocking the storage.ide file.

Closing 2015 and ignoring the storage.ide file in VS2017 sorted this issue.

Hope this might help others..

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
Questionrory.apView Question on Stackoverflow
Solution 1 - Visual StudioDavidGView Answer on Stackoverflow
Solution 2 - Visual StudioarmyView Answer on Stackoverflow