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
ConsoleOutputparameter in an<Output>tag
Finally!
Documentation here