Ignore list for svn and .Net

1

Category : svn

Every time I am at an organization that uses SVN for source control, I always have to remember what files and folders to ignore. Ignoring files and folders, for a .Net solution, is important so that you don’t checkĀ in the bin, obj, etc… These are files that are generated on every build and it will become annoying if you have to check them in every time.

I usually use Tortoise SVN, but this list of ignore parameters should be good for any tool. I put the following in the ignore list within the Tortoise SVN settings:

*.o *.lo *.la #*# .*.rej *.rej .*~ *~ .#* .DS_Store thumbs.db Thumbs.db *.bak *.class *.exe *.dll *.mine *.obj *.ncb *.lib *.log *.idb *.pdb *.ilk *.msi* .res *.pch *.suo *.exp *.*~ *.~* ~*.* cvs CVS .CVS .cvs release Release debug Debug ignore Ignore bin Bin obj Obj Generated Logs *.csproj.user *.user

This list ignores the common .Net directives that are for the local user and not needed for the entire team. In addition, I also added the folders Generated and Logs. I added those because these are typical folders I use in my solutions to store my generated files (typically from the Entity Framework) and my log files.

This post is more of a note for myself on my next project, but hopefully it will help someone else too.