19

作爲我在VS2012上的問題的後續工作,是否還需要對VS2013的.hgignore文件進行添加?以下是以前的答案。Visual Studio 2013項目的Mercurial .hgignore

############################################################ 
## 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 
*.log 
*.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 
+1

FWIW,* .pubxml旨在進行簽入以便發佈設置可以在團隊中共享。 – Jimmy

+1

然而,有些團隊可能希望擁有開發人員特定的發佈配置文件。例如,您不一定希望您的生產發佈配置文件可供開發人員訪問,具體取決於您組織的安全做法。 – NathanAldenSr

+2

這不是複製/粘貼列表,而是一個包含列表,用戶可以從中選擇他們需要的內容。 – TheGwa

回答

13

通過合併.hgignore我經常使用(用VS 2013旗艦版),並在你的問題中.hgignore我編譯如下:

############################################################ 
## Visual Studio 2013 
############################################################ 
syntax: glob 

## User-specific files 

*.suo 
*.user 
*.sln.docstates 

## Build results 

[Dd]ebug/ 
[Dd]ebugPublic/ 
[Rr]elease/ 
[Rr]eleases/ 
x64/ 
build/ 
bld/ 
[Bb]in/ 
[Oo]bj/ 

## Roslyn cache directories 

*.ide/ 

## MSTest test Results 

[Tt]est[Rr]esult*/ 
[Bb]uild[Ll]og.* 

## NUnit 

*.VisualState.xml 
TestResult.xml 

## Build Results of an ATL Project 

[Dd]ebugPS/ 
[Rr]eleasePS/ 
dlldata.c 

*_i.c 
*_p.c 
*_i.h 
*.ilk 
*.meta 
*.obj 
*.pch 
*.pdb 
*.pgc 
*.pgd 
*.rsp 
*.sbr 
*.tlb 
*.tli 
*.tlh 
*.tmp 
*.tmp_proj 
*.log 
*.vspscc 
*.vssscc 
.builds 
*.pidb 
*.svclog 
*.scc 

## Chutzpah Test files 

_Chutzpah* 

## Visual C++ cache files 

ipch/ 
*.aps 
*.ncb 
*.opensdf 
*.sdf 
*.cachefile 

## Visual Studio profiler 

*.psess 
*.vsp 
*.vspx 

## TFS 2012 Local Workspace 

$tf/ 

## Guidance Automation Toolkit 

*.gpState 

## ReSharper Ignores 

_ReSharper*/ 
*.[Rr]e[Ss]harper 
*.DotSettings.user 

## JustCode 

.JustCode 

## TeamCity Ignores 

_TeamCity* 

## DotCover Ignores 

*.dotCover 

## NCrunch Ignores 

_NCrunch_* 
*.ncrunch* 
.*crunch*.local.xml 

## MightyMoose 
*.mm.* 
AutoTest.Net/ 

## Web workbench (sass) 
.sass-cache/ 

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

*.[Pp]ublish.xml 
*.azurePubxml 
*.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/ 

## Business Intelligence projects 

*.rdl.data 
*.bim.layout 
*.bim_*.settings 

## Microsoft Fakes 

FakesAssemblies/ 
*.favdoc 

## Miscellaneous Ignores 

sql/ 
*.Cache 
ClientBin/ 
[Ss]tyle[Cc]op.* 
~$* 
*~ 
*.dbmdl 
*.dbproj.schemaview 
*.pfx 
*.publishsettings 
node_modules/ 

## Windows Ignores 

$RECYCLE.BIN/ 
Thumbs.db 
ehthumbs.db 
Desktop.ini 

除了增加了幾個流行的插件(如JustCode和NUnit ),它還增加了BI項目,Fakes等等。

如果您只是將問題列表保存在您的問題中,請將列表保存在我的答案中,然後區分這兩個問題,您可以看到所有的細節差異。