MSB4166的间歇性构建中断:子节点“#”过早退出。 VS 15.9

时间:2019-03-08 20:23:31

标签: jenkins msbuild visual-studio-2017

我们的自动化构建系统间歇性地中断了。该错误与MSBuild子节点有关,似乎没有任何日志记录或错误信息。该错误可能在任何节点上以及构建中的不同点处随机发生。而且,我无法通过在命令行上运行建筑物来重现该问题。

 0>MSBUILD : error MSB4166: Child node "8" exited prematurely. Shutting down.
Diagnostic information may be found in files in "C:\Users\<user>\AppData\Local\Temp\"
and will be named MSBuild_*.failure.txt. This location can be changed by setting
the MSBUILDDEBUGPATH environment variable to a different directory.  

预期的日志文件MSBuild _ *。failure.txt不存在,并且控制台输出中没有任何信息可以指示导致故障的原因。我们正在使用“ .NET Framework的Microsoft(R)Build Engine版本15.9.21 + g9802d43bc3”和Jenkins 2.151.3

1 个答案:

答案 0 :(得分:1)

  

此问题似乎总是在CI服务器中发生,而在   msbuild本地计算机。

不确定其原因,但是将/nodeReuse:false添加到msbuild命令可以帮助解决此问题。

您可以看看[这个类似的]。(error MSB4166: Child node exited prematurely. Shutting down)。

相关问题