Pete Montgomery
Pete Montgomery

Reputation: 4100

Writing a custom MSBuild task which contains arbitrary XML

Is this possible? And if so, could I retrieve the raw XML within the Execute method?

<MyTask>
    <Arbitrary Xml="Here" />
</MyTask>

I suspect the answer is no.

Upvotes: 0

Views: 102

Answers (1)

Sayed Ibrahim Hashimi
Sayed Ibrahim Hashimi

Reputation: 44342

You suspect correctly :)

You would have to put your XML into a Property and then pass it into the task as all other properties are passed into tasks.

Upvotes: 1

Related Questions