How can task parameters be defaulted in MSBuild?

You can't do this at the UsingTask or Task but instead you can using properties that you pass into the task. For example.

You can't do this at the UsingTask or Task but instead you can using properties that you pass into the task. For example. Param-Default-Value In this case I define the property ReqParam to be Param-Default-Value only if the property doesn't already have a value.

This is not exactly what you are looking for, but it may be your best option unless you can change the task itself.

Thanks for the suggestion. My intention really is to avoid having to mention RequiredParam in the call to DoStuff. And, I can change the task itself.

– Scott Langham Jun 3 '10 at 8:17.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions