C# MSBuild日志文件位置
我正在生成脚本中运行msbuild,出现以下错误:C# MSBuild日志文件位置,c#,msbuild,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。它是否需要配置
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。它是否需要配置?如果不是,该文件的默认位置是什么?您可以运行
msbuild/v:diag>c:\log.txt
强制日志文件转到c:\log.txt
或者,您可以使用
/flp:filename=c:\log.txt
,了解更多信息。尝试过%temp%
?这将使您进入默认的临时目录…@jessehowing问题是,如果msbuild在CI服务器下运行,那么它可能是操作系统上的一个不同用户,而不是交互用户,因此msbuild输出需要指定目录。。。。