Question: How does the task to get property from MSBuild file

Hi Experts,
I had created a task, and I have a question. In my task, how does it get information from MSBuild file. I want to know if MSBuild has the way to make the task can freely get information without by task parameter or by parsing the xml file.

Thanks,
Hercules Zeng

[285 byte] By [Hercules] at [2008-3-1]
# 1
You can't get access to all properties. Tasks should have well defined input and output parameters that they use. It analogous to the idea of having parameters on your functions vs. just using global variables to communicate between functions.
More details:
http://channel9.msdn.com/wiki/default.aspx/MSBuild.PassingInAllPropertiesToATask
ErvWalter at 2007-9-9 > top of Msdn Tech,Visual Studio,Visual Studio MSBuild...

Visual Studio

Site Classified