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