是否可以在“Get”之前从 TFSBuild.proj 文件访问存储在 TFS 源代码管理中的文件构建任务?

发布于 2024-08-09 16:04:46 字数 480 浏览 3 评论 0原文

我正在使用一些已签入源代码管理的自定义 MSBuild 任务。我想将这些任务导入到 TFS 用于构建项目的 TFSBuild.proj 文件中。现在我已经创建了第二个项目文件,其中包含这些自定义任务的所有用途。我这样做是因为我可以在创建工作区并下载文件后运行该项目文件。

有没有办法从构建项目引用服务器上的文件,这样我就不必执行这两个步骤的过程?

我希望以下内容能够发挥作用。

<Import Project="$/My/Server/Path/Custom.tasks.targets" />

此问题与另一个问题相关。在我的例子中,任务被签入源代码管理,以便构建机器不需要另一个必需的安装。在这种情况下,将任务放在本地效果不太好。

I’m using a few custom MSBuild tasks that are checked into source control. I would like to import these tasks into my TFSBuild.proj file that TFS uses to build the project. Right now I have created a 2nd project file that includes all of the uses of these custom tasks. I do this because I can run this project file after the workspace has been created and the files have been downloaded.

Is there a way to reference the files on the server from the build project so that I don’t have to do this 2 step process?

I wish the following would work.

<Import Project="$/My/Server/Path/Custom.tasks.targets" />

This question is related to another question. In my case the tasks are checked into source control so that the build machines don't have another required install. Placing the tasks locally doesn't work very well in this case.

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

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

发布评论

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

评论(1

分開簡單 2024-08-16 16:04:46

如果您将任务和 .targets 文件放在与 TFSBuild.proj 文件相同的版本控制文件夹中(或其下的子目录中),TFS Build 将在执行之前将所有这些内容下载到您的构建代理中。启动你的构建脚本。

If you put the tasks and the .targets file(s) in the same version control folder as your TFSBuild.proj file (or in a sub-directory beneath it), TFS Build will download all of that content to your build agent prior to kicking off your build script.

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