Visual Studio 2012项目的Mercurial .hgignore

我目前使用Visual Studio 2010的类似问题的答案作为我去hgignore文件。 VS2012有什么值得注意的补充?


以下是来自许多不同来源的汇编列表。 在这里 。

我发现从VS2010升级的项目有很多不需要的备份和升级日志文件。

# 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/ 

从这个关于Visual Studio 2010的回答中,从这个问题的回应,以及这个精彩的引文,我编译了这个清单:

 ############################################################ ## Visual Studio 2012 ############################################################ syntax: glob ## User-specific files *.suo *.user *.sln.docstates ## Build results [Dd]ebug/ [Rr]elease/ x64/ build/ [Bb]in/ [Oo]bj/ ## MSTest test Results [Tt]est[Rr]esult*/ [Bb]uild[Ll]og.* *_i.c *_p.c *.ilk *.meta *.obj *.pch *.pdb *.pgc *.pgd *.rsp *.sbr *.tlb *.tli *.tlh *.tmp *.tmp_proj *.log *.vspscc *.vssscc .builds *.pidb *.scc ## Visual C++ cache files ipch/ *.aps *.ncb *.opensdf *.sdf *.cachefile ## Visual Studio profiler *.psess *.vsp *.vspx ## Guidance Automation Toolkit *.gpState ## ReSharper Ignores _ReSharper*/ *.[Rr]e[Ss]harper ## TeamCity Ignores _TeamCity* ## DotCover Ignores *.dotCover ## NCrunch Ignores *.ncrunch* .*crunch*.local.xml ## Installshield output folder [Ee]xpress/ ## DocProject Ignores DocProject/buildhelp/ DocProject/Help/*.HxT DocProject/Help/*.HxC DocProject/Help/*.hhc DocProject/Help/*.hhk DocProject/Help/*.hhp DocProject/Help/Html2 DocProject/Help/html ## Click-Once Ignores publish/ ## Publish Web Output *.Publish.xml *.pubxml ## Windows Azure Build Ignores csx *.build.csdef ## Windows Store Ignores AppPackages/ ## RIA/Silverlight projects Generated_Code/ ## SQL Server Ignores App_Data/*.mdf App_Data/*.ldf ## Backup & Report Files when converting a solution ## Not required, we have mercurial! _UpgradeReport_Files/ Backup*/ UpgradeLog*.XML UpgradeLog*.htm ## NuGet packages/ ## Miscellaneous Ignores sql/ *.Cache ClientBin/ [Ss]tyle[Cc]op.* ~$* *~ *.dbmdl *.[Pp]ublish.xml *.pfx *.publishsettings ## Windows Ignores $RECYCLE.BIN/ Thumbs.db ehthumbs.db Desktop.ini 

目前这个工具在我的仓库里工作的很好。

一般来说,我一般会build造它们,但这是一个很好的起点,我目前正在使用一个相当复杂的项目。 ipch/目录是ipch/唯一的新事物。

 ipch/ x64/ *Debug/ *Release/ TestResults/ *sdf *.suo *.user 

*Debug/*Release处理以Win7 Release为目标的设备驱动程序。 有*.opensdf*.sdf文件,如果需要可以单独列出。