I currently use the answer to a similar question for Visual Studio 2010 as my go to hgignore file. Are there any notable additions to include with VS2012?
Below is a compiled list from many different sources. Gist here.
I have found that projects upgraded from VS2010 have a lot of backup and upgrade log files not required.
# use glob syntax
syntax: glob
*.obj
*.pdb
*.user
*.aps
*.pch
*.vspscc
*.vssscc
*_i.c
*_p.c
*.ncb
*.suo
*.tlb
*.tlh
*.bak
*.[Cc]ache
*.ilk
*.log
*.lib
*.sbr
*.scc
[Bb]in
[Dd]ebug*/
obj/
[Rr]elease*/
_ReSharper*/
[Tt]humbs.db
[Tt]est[Rr]esult*
[Bb]uild[Ll]og.*
*.[Pp]ublish.xml
*.resharper
# For projects upgraded from VS2010
[Bb]ackup/
_UpgradeReport_Files/
UpgradeLog.*
*.opensdf
*.sdf
ipch/
x64/
I generally build them as I go but this is a good starting point that I currently use for a fairly complex project. The
ipch/
directory is the only new thing in VS2012.*Debug/
and*Release
handle device drivers that targetWin7 Release
, for example. There are*.opensdf
and*.sdf
files that can be listed separately if desired.By pulling from this previous answer about Visual Studio 2010, from this response in this question, and this wonderful citation I compiled this listing:
This is currently working great in my repositories.