问题描述
在使用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?
谢谢!
p.s .:目前,我执行以下操作:忽略所有.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的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!