Teamcity:构建存储在 Mercurial 存储库中的 C# 项目

发布于 2024-10-07 22:00:24 字数 180 浏览 0 评论 0原文


我正在尝试使用 teamcity 执行一项简单的任务,即将项目从一个存储库拉到另一个存储库(由 teamcity 创建),并使用 Visual Studio 构建模式从第二个存储库构建项目。我面临的问题是,当 teamcity 提取更新时,它不会更新工作文件夹,因此无法找到 .sln 文件,因此构建失败。如何让它发挥作用? 先感谢您。

I'm trying to perform a simple task with teamcity that is to pull project from one repository to another (created by teamcity) and build the project from the second repository using visual studio build mode. The problem I faced is when teamcity pulls updates it doesn't update working folder so it can't find .sln-file hence build fails. How to get it work?
Thank you in advance.

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

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

发布评论

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

评论(1

也只是曾经 2024-10-14 22:00:24

为什么要使用第二个存储库?为什么不让 TeamCity 从第一个存储库获取代码并直接构建它?

在我的工作场所,我们像这样将 TeamCity 与 Mercurial 一起使用(TeamCity 直接从“真实”存储库获取代码)并且它运行得很好!

如果您确实需要第二个存储库,您可以通过脚本进行拉取。
设置 TeamCity,使其只了解第二个存储库,并从中提取和构建。
然后,设置一个计划任务,每隔几分钟从第一个存储库提取到第二个存储库。

Why are you using a second repository? Why not let TeamCity get the code from the first repository and build it directly?

At my workplace, we are using TeamCity with Mercurial like this (TeamCity gets the code directly from the "real" repository) and it works perfectly!

If you really need the second repository, you could do the pulling by script.
Set up TeamCity so that it only knows about the second repository, and that it pulls and builds from that.
Then, set up a scheduled task that pulls from the first repository to the second every few minutes.

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