Reputation: 1241
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.
Upvotes: 1
Views: 1630
Reputation: 16133
You have to define the DevEnvDir environment variable on your build server or add it into variables for build definition. The same posts:
Guidance to add variable: Set variables in pipeline
Upvotes: 1