Good news everyone! You can now capture output from <Exec>
as of .NET 4.5.
Like this:
<Exec ... ConsoleToMSBuild="true">
<Output TaskParameter="ConsoleOutput" PropertyName="OutputOfExec" />
</Exec>
Simply:
- Add
ConsoleToMsBuild="true"
to your<Exec>
tag - Capture the output using the
ConsoleOutput
parameter in an<Output>
tag
Finally!