MSBuild日志文件位置 [英] MSBuild log file location

查看:191
本文介绍了MSBuild日志文件位置的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在生成脚本中运行msbuild,但出现此错误:

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.

我在我的机器上找不到文件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?

推荐答案

您可以运行

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

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

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

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

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

这篇关于MSBuild日志文件位置的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆