MSBUILD : error MSB4166: Child node "X" exited prematurely
Posted by Yoni Davidson on 16 January 2018 01:34 PM

This error can happen whether or not you are executing your build with IncrediBuild. It is usually related to parallel MSBuild executions. 


Since IncrediBuild parallelizes the majority of its processes, you may face this error more often. 


Try the following steps to solve the problem: 

  1. Disable multiprocess compilations (/MP) by opening the project settings, under the "C/C++" tab click on General 
  2. Add /p:GenerateBuildInfoConfigFile=false to the MSBuild command. 
  3. Disable parallel linking with IncrediBuild. To do so, go to Agent Settings and click on "General" under the "Visual Studio Builds" tab. 
  4. Disable Predicted Execution. To do so, go to Agent Settings and click on "Advanced" from under the "Visual Studio Builds" tab. 
(1 vote(s))
This article was helpful
This article was not helpful

Comments (0)
Post a new comment
Full Name:
CAPTCHA Verification 
Please enter the text you see in the image into the textbox below. This is required to prevent automated registrations and form submissions.

Help Desk Software by Kayako