toscanelli
toscanelli

Reputation: 1241

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

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

Answers (1)

Shamrai Aleksander
Shamrai Aleksander

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:

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

Guidance to add variable: Set variables in pipeline

Upvotes: 1

Related Questions