How can I direct MSBUILD output to a file?

Hi Michael,

You can use the -fileLogger parameter in the Extra Parameters field to write the MSBuild output to a file.

e.g.

-fileLogger -fileLoggerParameters:logfile=$Workspace$\Output\MSBuildOutput.log;verbosity=diagnostic

See Obtain build logs with MSBuild (microsoft.com)

1 Like