I'm creating some new build scripts for a project using PowerShell, and would like to capture the output of MSBuild when I call it and save that to a text file. I've tried a couple different methods of doing so with no luck so far--here's what I last tried (Write-Buildlog just handles writing off the output to the log):
Start-Process $msBuildExecutable $buildArgs -Wait | Write-Buildlog
No output at all is captured, though MSBuild runs fine. Any tips would be greatly appreciated as I've done a bit of searching and have found nothing useful so far, which is surprising :)
Thanks!