构建代理文件夹如何在编辑构建工作区中工作? [英] How does the build Agent Folder work on the Edit Build Workspace?

查看:24
本文介绍了构建代理文件夹如何在编辑构建工作区中工作?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的构建无法选择应用程序中的某些项目.它们存储在 TFS 源代码管理中自己的项目中.我在 Edit Build 工作区中将它们组合在一起;

My build cannot pick up some of the projects in my application. They are stored in their own projects in TFS source control. I group them together in the Edit Build workspace;

这些是映射:

Build Agent 文件夹不允许我简单地放置 $(SourceDir).如上在末尾附加文件夹名称有什么影响?如何让构建代理从正确的文件夹位置选取项目?

The Build Agent folder does not let me simply put $(SourceDir). What is the impact of appending a folder name at the end as above? How do I get the Build Agent to pick up the projects from the correct folder locations?

目前我收到这些错误信息;

Currently I get these error messages;

8 error(s), 3 warning(s)
$/STAS/Timesheet/Timesheet/Timesheet.sln - 8 error(s), 3 warning(s), View Log File
 C:\Builds\4\STAS\Timesheet\Sources\Timesheet\Timesheet.sln.metaproj: The project file "C:\Builds\4\STAS\Timesheet\Sources\Timesheet\..\..\..\..\StandardClassLibrary\StandardClassLibrary\StandardClassLibrary.csproj" was not found.
 C:\Builds\4\STAS\Timesheet\Sources\Timesheet\Timesheet.sln.metaproj: The project file "C:\Builds\4\STAS\Timesheet\Sources\Timesheet\..\..\..\EmailMessageRecord\EmailMessageRecord\EmailMessageRecord.csproj" was not found.

推荐答案

这正是该功能的用途.$(Sourcedir) 宏替换为构建代理路径(在构建代理上配置):

This is exactly how the feature is meant to be used. The $(Sourcedir) macro is replaced by the Build Agent path (as configured on the Build Agent):

此处配置的任何路径都放入 $(Sourcedir) 中,并且您在映射中额外配置的任何内容都用于创建最终目的地.

Whichever path is configured here is placed into $(Sourcedir) and whatever you additionally configure in the mapping is used to create the final destination.

那么会发生什么,这些解决方案都会被下载到构建工作目录下的它们自己的子目录中.您唯一需要注意的是,源代码管理或本地映射中文件夹之间的相对路径需要与您在构建定义的工作区映射中选择的目标文件夹结构相匹配.

So what happens is that these solutions will all be downloaded to their own sub directory under the build working directory. The only think you'll need to look out for is that relative paths between folders in source control or in your local mapping need to match up with the destination folder structure you choose int he build definition's workspace mapping.

这篇关于构建代理文件夹如何在编辑构建工作区中工作?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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