在 TeamCity 中构建同一解决方案的不同项目

发布于 2024-10-05 20:01:50 字数 167 浏览 2 评论 0原文

我有一个 git 存储库,其中包含一些 .NET 解决方案和一些共享项目。我希望 TeamCity 在解决方案发生变化时触发每个解决方案的构建;我遇到的问题是,每当我的根目录中发生任何更改时,Teamcity 都会告诉我其他解决方案中存在待处理的更改,这些更改不受所做更改的影响。

有办法实现我的目标吗?

I have a git repository containing a few .NET solutions with some shared projects. I'd like TeamCity to trigger a build per solution whenever the solution changes; the problem I'm having is that whenever anything changes in my root directory, Teamcity tells me there are pending changes in the other solutions that weren't affected by the changes made.

Is there a way to do what I'm aiming at?

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

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

发布评论

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

评论(2

朱染 2024-10-12 20:01:50

我推荐针对“共享”项目的单独解决方案。或者,您可以有多种解决方案配置,其中不应该构建“共享”项目。

I recomend separate solution for "shared" projects. Or you can have several configurations of solution where "shared" project is not supposed to build.

掩耳倾听 2024-10-12 20:01:50

听起来就像您只使用一个存储库引用。如果您有不同的解决方案,您应该为每个解决方案创建一个存储库引用 (TC-config),或者编辑每个构建项目的签出规则,以仅包含解决方案所依赖的存储库部分。

Reads like you are using just one repository reference. If you have different solutions you should either create one repository reference (TC-config) for each or edit the checkout rules for each build project to include only the parts of the repo the solution depends on.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文