在构建整合外部资源 [英] Integrating External Sources in a Build

查看:130
本文介绍了在构建整合外部资源的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在哪里工作,我有不同的版本库的几个项目。每个项目共享一个共同的很多code的,我想拉出来成为一个独特的项目。我想打电话项目有以下方案:Company.Department.Common或Company.Department.Utility

Where I work I have several projects in separate repositories. Each project shares a lot of common code that I want to pull out into a distinct project. I'm thinking of calling the project with the following scheme: Company.Department.Common or Company.Department.Utility.

我已经构建了这个项目,它有一个自动构建脚本(一样所有其他项目)。

I've constructed a project for this and it has an automated build script (as does every other project).

我的问题是,我想我的重构现有项目依靠这个新的项目。一种方法,这是比较基本的,但不正是我期待的是简单地建立我的工具项目,将DLL复制到我的lib文件夹在我的消费项目,并检查与消费项目DLL。

My question is that I would like to refactor my existing projects to depend on this new project. One method that is quite basic but not exactly what I am looking for is to simply build my Utility project, copy the DLL to my lib folder in my consuming project, and check that DLL in with that consuming project.

我个人觉得这个方法是比较差的。我想有我的实用项目的引用,将执行SVN更新和消费项目的构建前的实用项目建设。

I personally feel that method is quite poor. I would like to have a reference to my Utility project and will perform a svn-update and build of the Utility project before the build of the consuming project.

仅供参考,那是在Utlity项目的那种code都记录设施,BDD单元测试类,国际奥委会faclities和通用Company.Department重点班。

FYI, the kind of code that's in the Utlity project are Logging facilities, BDD Unit Testing classes, IoC faclities, and Common Company.Department focused classes.

希望我的问题不是太含糊,但也有一些答案,我也许能够更加重视我想要做什么。

Hope my question isn't too vague, but with some answers I may be able to sharpen the focus on exactly what I would like to do.

最后,这是.NET项目,并使用楠作为构建脚本,和svn为code版本。

Lastly, this is for .Net projects and using NAnt as the build script, and svn for code versioning.

推荐答案

格雷格是正确的,你可能会想使用svn:外部特征。我创建了如何与TortoiseSNV做到这一点在Windows上一步一步的指导。我觉得这是很混乱的第一对夫妇的时候,我用它。我创建指导,这样我可以看看它,因为我没有做这一切的时候。

Greg is right in that you will probably want to use the svn:external feature. I created a step by step guide on how to do this on Windows with TortoiseSVN. I found it quite confusing the first couple times I used it. I created the guide, so that I can look it up, because I don't do it all the time.

<一个href=\"http://systemwidgets.com/Support/SubversionArticles/SharedRepositoriesusingsvnexternals/tabid/81/Default.aspx\"相对=nofollow>使用svn:外部与Windows

这篇关于在构建整合外部资源的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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