C++ Visual Studio 2010 的全局源代码控制忽略模式中应该包含什么?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/2538149/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
What should be contained in a global source code control ignore pattern for Visual Studio 2010?
提问by Chris Simmons
After installing and using Visual Studio 2010, I'm seeing some newer file types (at least with C++ projects ... don't know about the other types) as compared to 2008. e.g. .sdf, .opensdf, which I guess are the replacement for ncb files with Intellisense info stored in SQL Server Compact files? I also notice .log files are generated, which appear to be build logs.
安装和使用 Visual Studio 2010 后,与 2008 年相比,我看到了一些更新的文件类型(至少对于 C++ 项目......不知道其他类型)。例如 .sdf、.opensdf,我猜是用存储在 SQL Server Compact 文件中的 Intellisense 信息替换 ncb 文件?我还注意到生成了 .log 文件,这些文件似乎是构建日志。
Given this, what's safe to add to my global ignore pattern? Off the bat, I'd assume .sdf, .opensdf, but what else?
鉴于此,向我的全局忽略模式添加什么是安全的?马上,我假设 .sdf、.opensdf,但还有什么?
回答by mloskot
For C++ projects, you should be fine ignoring the following files:
对于 C++ 项目,您应该可以忽略以下文件:
- *.sdfand *.opensdf (temporary file opened only while .vcxproj/.sln is loaded to Visual Studio IDE)
- *.suo
- *.vcxproj.user
- ipchfolder, if your project uses Pre-compiled Headers (PCH); it is a storage for Intellisense compiler which can now utilise PCH for better performance
- *. sdf和 *.opensdf(临时文件仅在 .vcxproj/.sln 加载到 Visual Studio IDE 时打开)
- *. 索
- *. vcxproj.user
- ipch文件夹,如果您的项目使用预编译头文件 (PCH);它是 Intellisense 编译器的存储,现在可以利用 PCH 以获得更好的性能
For C# projects, it's also a good idea to ignore bin
and obj
directories, and *.suo
too.
对于 C# 项目,忽略bin
和obj
目录也是一个好主意*.suo
。
回答by dexblack
*.o *.lo *.la *.al .libs *.so *.so.[0-9]* *.a *.pyc *.pyo *.rej *~ #*# .#* .*.swp .DS_Store *.ilk *.aps *.suo *.ncb *.user *.opt *.plg */Debug* */Release* */debug* */release* *.*~ *.tlb *_i.c *_p.c _*.idl _*.h *.obj *.vspscc dlldata.c *.pch *.idb *.pdb *.manifest *.res *.exe *.dll mt.dep BuildLog.htm *_i.h *.idc *.swp *.trx */TestResults *.vcxproj.filters ipch *.sdf *.opensdf
Read this reference page for file types from MS Visual Studio
*.o
: GCC object files*.lo
: GNU Libtool Library Object File*.la
: libtool archives*.al
: ?.libs
: autotools object directory*.so
,*.so.[0-9]*
: GNU shared library*.a
: GCC import or static library*.pyc
: Compiled Python file/library*.pyo
: Python object file*.rej
: SVN conflict resolution file (mostly backups)*~
, .~: Temporary backup files for Linux desktop utilities like Kate, Kwrite...#*#
.#*
: Build system generated intermediate response files etc..*.swp
: VIM editor swap file.DS_Store
: OSX directory metadata storage*.ilk
: MSVC Incremental linker file.*.aps
: Binary version of the current resource script file; used for quick loading.*.suo
: Solution User Options*.ncb
: MSVC Intellisense Data*.user
: QtCreator (and maybe other) private user settings file.*.opt
: MSVS workspace options*.plg
: Build log file*/Debug*
,*/debug*
: Debug build directory*/Release*
,*/release*
: Release build directory*.tlb
: Type library output from MIDL compiler*_i.c
,*_p.c
,_*.idl
,_*.h
,*_i.h
: MIDL generated files. _i - interface, _p - proxy, etc.*.obj
: MSVC object file.*.vspscc
: Source code control configurationdlldata.c
: MIDL generatd proxy/stub code.*.pch
: MSVC precompiled header*.idb
: Minimum Rebuild Incremental Database*.pdb
: Program Debug database: contains all debug info.*.manifest
: Manifest files*.res
: Compiled resource file.*.exe
,*.dll
: Windows binariesmt.dep
: Generated ManifestBuildLog.htm
: self-explanatory*.idc
: Internet Database Connector definitions*.trx
: Visual Studio Test Results File*/TestResults
: Self-explanatory*.vcxproj.filters
: Private user-dependent VS IDE file.ipch
: MSVC Precompiled header directory*.sdf
: SQL Server Compact Database File*.opensdf
: Temp file related to corresponding .sdf
*.o
: GCC 目标文件*.lo
: GNU Libtool 库对象文件*.la
: libtool 档案*.al
:?.libs
: 自动工具对象目录*.so
,*.so.[0-9]*
: GNU 共享库*.a
: GCC 导入或静态库*.pyc
: 编译好的 Python 文件/库*.pyo
:Python目标文件*.rej
: SVN 冲突解决文件(主要是备份)*~
, . ~:Kate、Kwrite 等 Linux 桌面实用程序的临时备份文件...#*#
.#*
: 构建系统生成的中间响应文件等。.*.swp
: VIM 编辑器交换文件.DS_Store
: OSX 目录元数据存储*.ilk
: MSVC 增量链接器文件。*.aps
:当前资源脚本文件的二进制版本;用于快速加载。*.suo
:解决方案用户选项*.ncb
: MSVC 智能感知数据*.user
:QtCreator(可能还有其他)私人用户设置文件。*.opt
:MSVS 工作区选项*.plg
: 构建日志文件*/Debug*
,*/debug*
: 调试构建目录*/Release*
,*/release*
: 发布构建目录*.tlb
: MIDL 编译器的类型库输出*_i.c
,*_p.c
,_*.idl
,_*.h
,*_i.h
: MIDL 生成的文件。_i - 接口,_p - 代理等。*.obj
: MSVC 目标文件。*.vspscc
: 源代码控制配置dlldata.c
: MIDL 生成代理/存根代码。*.pch
: MSVC 预编译头*.idb
: 最小重建增量数据库*.pdb
:程序调试数据库:包含所有调试信息。*.manifest
: 清单文件*.res
: 编译的资源文件。*.exe
,*.dll
: Windows 二进制文件mt.dep
: 生成的清单BuildLog.htm
: 不言自明*.idc
: Internet 数据库连接器定义*.trx
:Visual Studio 测试结果文件*/TestResults
: 不言自明*.vcxproj.filters
: 私人用户依赖的 VS IDE 文件。ipch
: MSVC 预编译头目录*.sdf
:SQL Server Compact 数据库文件*.opensdf
: 与相应 .sdf 相关的临时文件