When implementing a microsoft.build.utilities.task how to i get access to the various environmental

Posted by Simon on Stack Overflow See other posts from Stack Overflow or by Simon
Published on 2010-06-15T08:18:30Z Indexed on 2010/06/15 8:22 UTC
Read the original article Hit count: 335

Filed under:
|
|

When implementing a microsoft.build.utilities.task how to i get access to the various environmental variables of the build?

For example "TargetPath"

I know i can pass it in as part of the task XML

<MyTask TargetPath="$(TargetPath)" />

But i don't want to force the consumer of the task to have to do that if I can access the variable in code.

http://msdn.microsoft.com/en-us/library/microsoft.build.utilities.task.aspx

© Stack Overflow or respective owner

Related posts about .NET

Related posts about msbuild