tags:

views:

19

answers:

1

I'm executing a task in msbuild:

<MyTask ContinueOnError="true" OtherParam="Cheese"/>

<PropertyGroup>
  <MyTaskResult>????how do I set this????</MyTaskResult>
<PropertyGroup>

I want to get the result of MyTask into a property (it's Execute method returns a bool) so I can test it and conditionally do stuff. Is this possible?

Thanks.

+4  A: 

You could modify your task to put its results in an output parameter.

Jay Bazuzi
Thanks, yes, you're right. Phew, good job I've got the source code. I'm surprised there doesn't seem to be any other way.
Scott Langham