TFS Visual Studio Build task doesn't recognise macro DevEnvDir during post build event

荒凉一梦 提交于 2020-07-10 10:52:25

问题


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

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...

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


回答1:


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

  1. Team Build does not understand DevEnvDir
  2. Windows 7 Winforms ActiveX DEP and TFS

Guidance to add variable: Set variables in pipeline



来源:https://stackoverflow.com/questions/55721390/tfs-visual-studio-build-task-doesnt-recognise-macro-devenvdir-during-post-build

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!