管理小型公司(50 名开发人员)中的 .net 共享库

发布于 2025-01-04 09:30:56 字数 261 浏览 5 评论 0 原文

在我的公司,我们有 50 多名开发人员。大约有 9 个项目共享大量公共库(20+),这个过程每天都变得越来越复杂。主要问题是:

  1. 如何跟踪库的每个版本中的更改内容以及
  2. 在哪里存储这些程序集。现在我们使用共享驱动器,并且我们有一个约定:/lib/version/*.dll
  3. 如何在构建时自动嵌入正确的库。目前,我们在 Visual Studio 中使用手动更新的 .targets 文件。

你们公司是如何管理这方面的?

In my company we are 50+ developers. There are around 9 projects that share a lot of common libraries (20+) Tis process is becoming more and more complex every day. The main problems are:

  1. how to keep track of what was changed in each version of the library
  2. where to store those assemblies. Now we use a shared drive and we have a convention: /lib/version/*.dll
  3. how to automatically embed correct libraries at build time. We currently use a .targets file in visual studio that we manually update.

How do you manage this aspect in your company?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

酒儿 2025-01-11 09:30:56

虽然我还没有这样做,但您可以尝试将库打包为 Nuget 包,并运行内部 Nuget 服务器来提供它们。

http://docs.nuget.org/docs/creating -packages/hosting-your-own-nuget-feeds

我们开始对我们需要跨团队共享的 Ruby 库做类似的事情 - 将它们打包为 gems 并从内部 gem 服务器提供它们。

While I haven't done this, you might try packaging up your libraries as Nuget packages, and run a internal Nuget server to serve them up.

http://docs.nuget.org/docs/creating-packages/hosting-your-own-nuget-feeds

We're starting to do a similar thing with our Ruby libraries that we need to share across teams - package them up as gems and serve them from an internal gem server.

伴我心暖 2025-01-11 09:30:56

我运行 TeamCity 的免费版本,它可以自动构建项目(需要一些 MSBuild 自定义),然后输出在 TeamCity 中发布的文件,并带有可下载的链接,例如: http://10.0.0.194:8111/guestAuth/repository/download/bt3/.lastSuccessful/Project.dll。在我的项目中,我覆盖 MSBuild 中的“BeforeBuild”部分,并使用此链接下载 Project.dll 文件 - 我确保:

  • 我正在使用最新版本的 Project.dll(它始终保存在同一个 http 链接中
  • ) (或任何东西)我下载的内容通过了一些测试(取决于 TeamCity 配置)
  • 我独立于其他程序员工作,因为我没有手动复制/粘贴或使用共享驱动器
  • 它可以从任何 IDE/程序/任何可以访问站点和的内容进行访问下载文件(Java, C++、Python 等..)
  • 等等、等等...

I run free-ware version of TeamCity that can automatically build project (some MSBuild customization required) then output file published in TeamCity with downloaded-able link for example: http://10.0.0.194:8111/guestAuth/repository/download/bt3/.lastSuccessful/Project.dll. In my project I overwrite 'BeforeBuild' section in MSBuild and download the Project.dll file with this link - this I make sure that:

  • I'm using latest version of Project.dll (it always saved in the same http link)
  • The dll (or anything) I download was passed some tests (depends on TeamCity configuration)
  • I work independently from other programmer because I don't have manually copy/paste or use share drive
  • It accessible from any IDE/program/whatever that can access site and download file (Java, C++, Python, etc..)
  • etc, etc, etc...
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文