tfs - 表示 TFS 项目名称的变量是什么?

标签 tfs build tfsbuild

我正在为我的一个项目创建 Team Foundation Server (TFS) 2008 构建代理。对于工作目录,我们不使用默认的 $(Temp)\$(BuildDefinitionPath)。我们使用特定的文件夹来代替 Temp。该文件夹路径包括团队项目的名称。我的问题来了。是否有团队项目名称的变量替换。

示例工作目录: D:\Builds\BuildAgents\AdventureWorld\$(BuildDefinitionPath)

我想用变量替换 AdventureWorld。

最佳答案

使用$(MSBuildProjectName) :

The file name of the project file without the file name extension, for example, MyApp.

关于tfs - 表示 TFS 项目名称的变量是什么?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/2051990/

相关文章:

tfs - 使用 CLI 从 tfs 服务器获取最新信息

powershell - 如何将 secret 类型变量传递给脚本?

tfs - TFS 2013安装中的 “Edit build definition”权限在哪里?

c# - 保存构建定义在 Visual Studio Team Service 中出错

msbuild - 发布配置文件未部署在 TFS 构建上

workflow - 在另一个构建成功后触发 TFS 2010 Team Build

tfs - 将本地 TFS 与 Slack 集成

iOS - 具有不同支持版本的 iOS 的 Phonegap 构建项目的应用程序图标支持错误

android - Gradle 无法解析项目 :linkedin-sdk

c++ - 如何为C++构建32位的Assimp库?