Viktor Axén
Viktor Axén

Reputation: 319

How do I include Project Properties without the large .vs folder in GitHub repository?

How can I include my Visual Studio projects properties, i.e. the inlcude directories etc., when commiting to my GitHub repository. I have figured out that the properties are saved in the hidden folder ".vs" in the project directory, but that folder grows several gigabytes large for reasons I don't know. Is there a way to limit the size of this folder or to only include the necessary subdirectories of .vs? And if the latter, what are the necessary subdirectories?

Upvotes: 0

Views: 1150

Answers (2)

P. Paul-Alexandre
P. Paul-Alexandre

Reputation: 189

The project properties are saved in the *.*proj and *.sln files, not in the .vs directory. For information, visual studio can create the .gitignore by itself and it will add .vs/ to the ignore list

Upvotes: 0

yorammi
yorammi

Reputation: 6458

You can add:.vs/to the .gitignore file so that the folder will not be included in the repository. If you already committed it to GIT, run git rm .vs in addition to adding it to the ignore list.

Upvotes: 1

Related Questions