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?
If you right click on a single unversioned file, and select the command TortoiseSVN → Add to Ignore List from the context menu, a submenu appears allowing you to select just that file, or all files with the same extension.
To ignore files in subversion you want to set the svn:ignore property. You can see more here http://svnbook.red-bean.com/en/1.8/svn.advanced.props.special.ignore.html about half way down. svn propset svn:ignore target . svn propedit svn:ignore .
The svn:ignore property One of these properties is svn:ignore . How this works is that you use the command svn propset to set the property svn:ignore on a particular directory. You give svn:ignore a value, which is a file name pattern. Then, svn will ignore all items in this directory whose name matches the pattern.
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
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 informationrelease/*
— 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
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