Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

.vs folder to source control in visual studio 2015? [duplicate]

What's the best practice for excluding/including the .vs folder for a VS 2015 solution in source control?

After an initial build/edit I only see a .suo file created so far at '[Root]/.vs/[SolutionName]/v14/.suo', so I'm assuming that's the replacement for the old '[SolutionName].suo' and should be excluded (generally) - but will other settings/etc be placed there in some scenarios that I might want to version?

From this uservoice, I'm guessing the answer is that it should be ignored, just wanted a confirm before I updated all my machine settings since I didn't see it in any local docs.

like image 287
Gene Avatar asked Jul 20 '15 21:07

Gene


People also ask

Where is .VS folder in Visual Studio?

There's a . vs folder created right next to . sln solution file. Under Project->Properties->Configuration Properties->General there is already an entry for Intermediate Directory.

Can I delete the .VS file?

Yes, you can delete it. visual studio will simply recreate that folder for you.

What happens if I delete .VS folder?

When you delete the vs folder, you may lose user state related to solutions such as build configurations, local debug settings, open tabs, Project Configuration such as Profile type, Launch type , and so on. But deleting the . vs folder will not create any impact on: Solutions and projects.

Should I commit the .VS folder?

No, you should not add it to source control. The purpose of this folder is to move machine- and user-specific files to a central location. The explanation on the Visual Studio User Voice issue explains it well: So far, we have moved the .


1 Answers

You should not check .vs into source control.

It just contains temporary caches used by Roslyn.

like image 134
SLaks Avatar answered Oct 05 '22 18:10

SLaks