** Visual Studio 2015, should I transfer Project.sln.ide \ * files to git?

I use Visual Studio 2015 CTP, and it creates a new folder called <project>.sln.ide\ with several files in it, such as:

 edb.chk edb.log edbres00001.jrs edbres00002.jrs edbtmp.log storage.ide 

Should I add these files (or the entire folder) to my .gitignore ?

If it should be added to .gitignore , what would be the correct syntax? I think *.sln.ide\ will be okay?

+7
git visual-studio-2015
source share
2 answers

You must exclude the "* .ide" folder.

From Microsoft : β€œIt also contains the .sln.ide folder, which is used by the Roslyn Compiler mechanism to store temporary files. Usually this folder should be excluded from the original management system.”

"default" .gitignore for Visual Studio, found on GitHub, includes an exception for "* .ide", as shown here .

+5
source share

Any files that other collaborators should not have in their environment to compile the source code should be placed in a .gitignore file. If you are sure that other collaborators are using the same IDE as yours, you should place the entire folder there.

The expression **.ide/ works to block this directory.

Now, if you are not sure that everyone will use the same IDE, you can put the same expression inside .git/info/exclude , which will create an exclusive entry exclusively for you in this project.

+4
source share

All Articles