MSBuild日志文件位置

时间:2017-02-25 15:55:18

标签: c# msbuild

我在构建脚本中运行msbuild,我收到此错误:

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.

我在我的机器上找不到文件MSBuild _ * .failure.txt。是否需要配置?如果没有,该文件的默认位置是什么?

1 个答案:

答案 0 :(得分:0)

你可以运行

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

强制您的日志文件转到c:\log.txt

或者,您可以使用/flp:filename=c:\log.txt,更多信息here

相关问题