简体   繁体   English

Mercurial .hgignore for Visual Studio 2012项目

[英]Mercurial .hgignore for Visual Studio 2012 projects

I currently use the answer to a similar question for Visual Studio 2010 as my go to hgignore file. 我目前使用Visual Studio 2010的类似问题的答案作为我去hgignore文件。 Are there any notable additions to include with VS2012? 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. 我发现从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/

By pulling from this previous answer about Visual Studio 2010, from this response in this question, and this wonderful citation I compiled this listing: 通过从拉有关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

This is currently working great in my repositories. 这目前在我的存储库中运行良好。

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. ipch/目录是ipch/唯一的新东西。

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

*Debug/ and *Release handle device drivers that target Win7 Release , for example. *Debug/*Release处理以Win7 Release为目标的设备驱动程序。 There are *.opensdf and *.sdf files that can be listed separately if desired. 如果需要,可以单独列出*.opensdf*.sdf文件。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM