I am working on a mvc core application. and files in .vs folder kept giving me problems. I have to merge files in .vs folder every time I checked in. Is it safe to add it in the gitignore file?
vs folder.
vs folder is required by Visual Studio to store opened documents, breakpoints, and other information about state of your solution. We will continue to evaluate it for future releases.
gitignore should list the names or name-patterns of files that will be found in work-trees when working with your project, but that should not be committed to the project. In other words, it's not OS-specific, it's project-specific.
But deleting the . vs folder will not create any impact on the: Solutions and projects. Project Dependencies files.
Yes, you can add .vs
folder to .gitignore
- in fact you should do this on the beginning.
Also - when you create new repository on GitHub - you can use predefined .gitignore
file... in your case it can be 'Visual Studio' (included .vs
and a lot more):
For myself I always add additional lines to ignore Bower and NPM packages - they are automatically restored, so I see no reason to keep them in Repository (and this is really a lot of files) - unless you want to keep history of changes in these libraries - but that's your choice:
# Lib's
**/wwwroot/lib
node_modules/
BTW:
.vs
is Visual Studio 'working' folder and is not required for storing solution/project - you can delete it when VS is shutdown and after that VS will recreated it during lunching any solution - of course you loose your working configuration of IDE, but no worries, it's not painful.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With