在多个项目之间共享通用代码 [英] Share Common codes between multiple projects

查看:50
本文介绍了在多个项目之间共享通用代码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个类库项目,其中包含在我的项目中使用的常用代码,并且我使用 subversion 作为源代码控制.
我有一些关于管理解决方案、项目和可用性代码的问题.
我想在项目之间共享这个类库,当我更新它时,更新很容易应用于所有项目.我在哪里可以找到这个类库以在项目之间共享并改进源代码控制、可用性和......?

I have a class library project contains common codes that used in my projects and i use subversion as source control.
i have some question about managing solution,projects and codes for usability.
I want share this class library between projects and when i update it , the update applying easily to all projects.Where can i locate this class library to share between projects and improve source controlling , usability and ...?

有什么想法吗?

推荐答案

您可以使用 NuGet 包作为分发 DLL 的一种方式 - 构建您的通用程序集,pack 构建结果到特定目录中,然后将该目录用作 NuGet 包管理器的存储库.NuGet 选项的一部分是自动下载最新的包版本,因此无论何时打开解决方案,包管理器都会扫描存储库中的更新版本并下载它(如果有).

You can use NuGet packages as a means of distributing the DLLs - build your common assemblies, pack build results into a specific directory and use that directory as a repository for NuGet Package Manager. One part of NuGet options is downloading the latest package version automatically, so whenever you open the solution, the package manager scans the repository for newer version and downloads it, if there is one.

这是一个非常简单的教程:http:///juristr.com/blog/2012/04/using-nuget-to-distribute-our-company/

Here's a very easy tutorial: http://juristr.com/blog/2012/04/using-nuget-to-distribute-our-company/

这篇关于在多个项目之间共享通用代码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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