MSBuild failure

I sometimes get a failed build. building again solves the problem.

When it happens, I get the following 2 errors:

  • (MSB4028) The “OxygeneCompilerOutOfProcess” task’s outputs could not be retrieved from the “PositionsFileName” parameter. Object does not match target type.
  • (MSB4216) Could not run the “OxygeneCompilerOutOfProcess” task because MSBuild could not create or connect to a task host with runtime “CLR4” and architecture “x86”. Please ensure that (1) the requested runtime and/or architecture are available on the machine, and (2) that the required executable “C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\MSBuild\15.0\Bin\MSBuild.exe” exists and can be run.

The build log:
buildLog.txt (16.3 KB)

Sorry, forgot:
Build 2309
Visual Studio Professional 15.7.6

I think this is the same one:
https://talk.remobjects.com/t/intermitent-error-compiling/14532
bug #78751

Just read it, and yes, it is the same issue.