eKek0
eKek0

Reputation: 23329

Folders to ignore on subversion commit

Which folders may I not commit to subversion server?

I'm talking about an standard asp.net web application in Visual Studio 2.008. I think the bin folder because it's files are regenerated, is there any other?

Upvotes: 7

Views: 3320

Answers (3)

Rubens Mariuzzo
Rubens Mariuzzo

Reputation: 29261

For any C# project I would recommend to ignore the following files/directories:

Visual Studio files to ignore

  • *.pdb — Files that hold states information when debugging.
  • *.exe — Executable binaries.
  • *.dll — Library binaries.
  • debug/* — Folder used by Visual Studio to store a lot of debugging information
  • release/* — Folder used by Visual Studio to store binary releases.
  • *.user — Configuration per user.
  • *.suo — Options settings per user stored in binary format.
  • obj — Folder used by Visual Studio to store binary objects used while debugging.
  • bin — Folder used by Visual Studio to store compiled objects.
  • VSMacros80 — Folder used by Visual Studio to store macros.

Other files to ignore

  • packages — Folder used for NuGet references.
  • *.log — In case of having logs written in the source folder (this should not happen).

Note: Remember to add these pattern to be ignored recursively.


Extra (copy-n-paste)

*.pdb  
*.exe  
*.dll  
debug/*  
release/*  
*.user  
*.suo
obj  
bin  
VSMacros80
packages
*.log

Upvotes: 3

Chris S
Chris S

Reputation: 65476

obj is another one, as they're debug symbols built during compilation.

Upvotes: 1

MartinHN
MartinHN

Reputation: 19812

We put this string as the svn:ignore property on all our projects:

*.pdb  
*.exe  
*.dll  
debug/*  
release/*  
*.user  
*.suo  
obj/*  
bin/*  
obj  
bin  
VSMacros80  

Upvotes: 11

Related Questions