Visual Studio 2010的全局源代码控制忽略模式应该包含什么? [英] What should be contained in a global source code control ignore pattern for Visual Studio 2010?

查看:148
本文介绍了Visual Studio 2010的全局源代码控制忽略模式应该包含什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

安装并使用Visual Studio 2010后,我看到一些较新的文件类型(至少与C ++项目...不知道其他类型)。 .sdf,.opensdf,我想是替换ncb文件与Intellisense信息存储在SQL Server Compact文件?我也注意到.log文件被生成,它们似乎是构建日志。



鉴于这一点,什么可以添加到我的全局忽略模式?

解决方案

对于C ++项目,你应该可忽略以下文件:




  • *。sdf 和* .opensdf(临时文件仅在.vcxproj / .sln加载到
    时打开Visual Studio IDE )

  • *。 suo / a>

  • ipch 文件夹,如果您的项目使用预编译头(PCH);它是一个存储Intellisense编译器,现在可以利用PCH更好的性能



对于C#项目,它也是一个好主意, code> bin 和 obj 目录和 *。suo / p>

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.

Given this, what's safe to add to my global ignore pattern? Off the bat, I'd assume .sdf, .opensdf, but what else?

解决方案

For C++ projects, you should be fine ignoring the following files:

  • *.sdf and *.opensdf (temporary file opened only while .vcxproj/.sln is loaded to Visual Studio IDE)
  • *.suo
  • *.vcxproj.user
  • ipch folder, if your project uses Pre-compiled Headers (PCH); it is a storage for Intellisense compiler which can now utilise PCH for better performance

For C# projects, it's also a good idea to ignore bin and obj directories, and *.suo too.

这篇关于Visual Studio 2010的全局源代码控制忽略模式应该包含什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆