版本的Visual Studio 2010和HG [英] Versioning with Visual Studio 2010 and HG

查看:173
本文介绍了版本的Visual Studio 2010和HG的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

最近我和我的团队得到了版本控制,因为这一个HG存储库会更容易,更好地发展我们的应用程序。

Recently me and my team got a HG repository for versioning as this would make it easier and better to develop our application.

我们使用Visual Studio 2010和C#

We are using Visual Studio 2010 and c#

所有项目在版本控制之下。

All of the project is under version control..

不幸的是,当我们中的一个承诺,通常是其他获得打开解决方案时,一些种类的错误(由于各种文件VS了)

Unfortunately, when one of us commits, usually the other gets an error of some kind when opening the solution (due to the various files VS has)

我的问题是:哪些文件应该版本控制下放到?

My question is: what files should be put under version control? (and removed in my case!)

PS:我们有3个项目:(使用XNA)游戏,内容,测试

PS: we have 3 Projects: (using XNA) game, contents, test

非常感谢你!

推荐答案

至少你需要这些在你的 .hgignore

At least you need these in your .hgignore:

syntax: glob
bin
obj
*.sln.cache
*.suo
*.user

根据需要添加。但是,不要因为overignore你可以丢失数据的方式。对于instace @达林的回答使你停止的私有密钥文件(.SNK)跟踪。

Add as needed. But don't overignore as you can lose data that way. For instace @Darin's answer causes you to stop tracking of private key files (.snk).

这篇关于版本的Visual Studio 2010和HG的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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