TFS Visual Studio生成任务在生成后事件期间无法识别宏DevEnvDir

编程入门 行业动态 更新时间:2024-10-27 04:32:19
本文介绍了TFS Visual Studio生成任务在生成后事件期间无法识别宏DevEnvDir的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我有一个带有Visual Studio Build任务的Build定义.

I have a Build definition with a Visual Studio Build task.

其中一个项目有一个使用宏$(DevEnvDir)的Post Build Event命令,但是当TFS运行此任务时,我收到一个编译错误,因为DevEnvDir是 Undefined ...

One of the projects has a Post Build Event command that use the macro $(DevEnvDir) but when TFS runs this task I get a compilation error because DevEnvDir is Undefined...

当我通过Visual Studio构建解决方案时,不会发生这种情况.

This doesn't happen when I build the solution through Visual Studio.

推荐答案

您必须在构建服务器上定义DevEnvDir环境变量,或将其添加到用于构建定义的变量中.相同的帖子:

You have to define the DevEnvDir environment variable on your build server or add it into variables for build definition. The same posts:

  • 团队构建无法理解DevEnvDir
  • Windows 7 Winforms ActiveX DEP和TFS
  • Team Build does not understand DevEnvDir
  • Windows 7 Winforms ActiveX DEP and TFS
  • 添加变量的指导:在管道中设置变量

    更多推荐

    TFS Visual Studio生成任务在生成后事件期间无法识别宏DevEnvDir

    本文发布于:2023-11-13 10:13:29,感谢您对本站的认可!
    本文链接:https://www.elefans.com/category/jswz/34/1584107.html
    版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
    本文标签:无法识别   事件   Visual   TFS   DevEnvDir

    发布评论

    评论列表 (有 0 条评论)
    草根站长

    >www.elefans.com

    编程频道|电子爱好者 - 技术资讯及电子产品介绍!