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

34,228

Solution 1

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

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..

Share:
34,228
rory.ap
Author by

rory.ap

Principal Software Engineer, Litera B.S. in comp-sci, minor in math, University of Massachusetts, Amherst (2003). Married, two children; house in Pomfret, CT. I enjoy spending time with the family, running, skiing, reading, and building things -- physical and digital. I have a patent: http://www.google.com/patents/US8719238

Updated on February 17, 2020

Comments

  • rory.ap
    rory.ap over 4 years

    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?