MaPi
MaPi

Reputation: 1601

MSBuild log file location

I'm running msbuild in a build script and I get this error:

MSBUILD : error MSB4166: Child node "2" exited prematurely. Shutting down. Diagnostic information may be found in files in the temporary files directory named MSBuild_*.failure.txt.

I cannot find the file MSBuild_*.failure.txt on my machine. Is it something that needs to be configured? If not, what would the default location for that file be?

Upvotes: 4

Views: 4267

Answers (1)

Yennefer
Yennefer

Reputation: 6214

You can run

msbuild /v:diag > c:\log.txt

to force your log file to go to c:\log.txt.

Alternative, you may use /flp:filename=c:\log.txt, more information here.

Upvotes: 2

Related Questions