用于 Visual Studio 2008 项目的 Mercurial .hgignore [英] Mercurial .hgignore for Visual Studio 2008 projects
问题描述
使用 Visual Studio 2008 时,.hgignore 文件的最佳设置是什么?
What is a good setup for .hgignore file when working with Visual Studio 2008?
我主要是自己开发,偶尔我会克隆存储库供其他人使用.
I mostly develop on my own, only occasionly I clone the repository for somebody else to work on it.
我正在考虑 obj 文件夹、.suo、.sln、.user 文件等.它们可以被包含在内还是我不应该包含的文件?
I'm thinking about obj folders, .suo, .sln, .user files etc.. Can they just be included or are there file I shouldn't include?
谢谢!
ps:目前我执行以下操作:忽略所有 .pdb 文件和所有 obj 文件夹.
p.s.: at the moment I do the following : ignore all .pdb files and all obj folders.
# regexp syntax.
syntax: glob
*.pdb
syntax: regexp
/obj/
推荐答案
这是我用于 VS2008 的标准 .hgignore 文件,它最初是从 Git 忽略文件修改而来的:
Here's my standard .hgignore file for use with VS2008 that was originally modified from a Git ignore file:
# Ignore file for Visual Studio 2008
# use glob syntax
syntax: glob
# Ignore Visual Studio 2008 files
*.obj
*.exe
*.pdb
*.user
*.aps
*.pch
*.vspscc
*_i.c
*_p.c
*.ncb
*.suo
*.tlb
*.tlh
*.bak
*.cache
*.ilk
*.log
*.lib
*.sbr
*.scc
[Bb]in
[Dd]ebug*/
obj/
[Rr]elease*/
_ReSharper*/
[Tt]est[Rr]esult*
[Bb]uild[Ll]og.*
*.[Pp]ublish.xml
这篇关于用于 Visual Studio 2008 项目的 Mercurial .hgignore的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!