如何在SVN/Visual Studio中管理引用? [英] How manage references in SVN/Visual Studio?

查看:204
本文介绍了如何在SVN/Visual Studio中管理引用?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

很长一段时间以来,我一直在寻找一种管理引用的方法,但找不到任何理想的方法.

For a long time looking for a way to manage references, I haven't found any ideal way.

主要问题是:

1-)我是否应该包括在同一解决方案中使用的所有项目并引用该项目?还是只引用dll文件?

1-) Should I include all projects that I use in same Solution and reference the Project? Or reference just the dll file?

2-)如果我应该引用dll文件,最好的方法是在每个项目或svn根目录下的主文件夹中创建ReferencedAssemblies吗?

2-) If I should reference dll file, the best way is to create a ReferencedAssemblies inside each project or a main folder at svn root?

3-)它可以粘贴并在我的项目的bin文件夹中引用dll吗?

3-) Its ok paste and reference dll´s inside bin folder of my project?

4-)它可以在我的项目的bin文件夹中添加并提交dll吗?这样,当新的devoloper检出项目时,它将完美编译,但不是Visual Studio的默认行为,默认情况下,所有源控件都忽略bin和obj,仅添加.refresh文件(用于网站项目)

4-) Its ok add and commit dll´s inside bin folder of my project? This way when a new devoloper checkout the project, it will compile perfect, but isn´t default behavior of visual studio, all source controls ignore bin and obj by default, just adding .refresh files(for web-site project)

有人可以帮助我吗?

推荐答案

1)如果在解决方案中包含已经在其他地方签入的项目,则可以在Visual Studio中的解决方案级别更改该项目的SVN绑定. . (文件>源代码管理>更改源代码控制).您可以将其更改为指向SVN存储库中的任何位置.

1) If you include projects in your solution that are already checked in somewhere else, you can change the SVN binding for that project at the solution level in Visual Studio. (File > Source Control > Change Source Control). You would change it to point to wherever it's located in your SVN repo.

2)如果您在不同的机器上有很多开发人员都希望使用相同的库,那么为所有第三方库/程序集建立共同的位置可能会更容易.将它们复制到您的SVN信息库中的整个地方都没有意义.

2) If you have a lot of developers on different machines all wanting to use the same libraries, it's probably easier to have a common place for all your third-party libraries/assemblies. There's no point in having them copied all over the place in your SVN repository.

3)不,这样做通常不行.我会避免使用它(除非有人有正当的理由).

3) No, it's not usually ok to do this. I would avoid it (unless somebody has a valid reason for it).

4)切勿提交您的bin文件夹.默认行为是有原因的. .refresh文件是旧的Web Site 项目的副产品,并且很好.

4) Never commit your bin folders. The default behavior is such for a reason. The .refresh files are byproducts of the old Web Site projects and they are fine.

这篇关于如何在SVN/Visual Studio中管理引用?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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