Closed adrianvmsft closed 1 month ago
Also, repeated opening and closing of the file may be less performant than keeping the file opened
It is more robust to crashing, though, which I think is why this was decided long ago.
I agree that this logging should be best-effort and not cause a crash.
Is this logging to the file logger? Why not a binlog instead?
This is engine/scheduler-state logging that is also enabled with MSBUILDDEBUGENGINE. Which we should maybe reconsider, it is rarely useful even to us.
This is engine/scheduler-state logging that is also enabled with MSBUILDDEBUGENGINE. Which we should maybe reconsider, it is rarely useful even to us.
Fixed with #10642.
Issue Description
This was encountered while investigating an issue where design time builds were very slow. It turns out, EndBuild failed, leaving the DTBB service in an invalid state, causing CPS based projects to fallback to the slower, legacy build pipeline.
The DTBB service is being improved to better handle EndBuild throwing exceptions. However, this exception may still be thrown. Also, repeated opening and closing of the file may be less performant than keeping the file opened, and could be locked by the antivirus.
For more details, please refer to the internal devdiv item AB#2235125
Steps to Reproduce
No repro, for dump please refer to internal devdiv item 2235125
Expected Behavior
This method should not cause EndBuild to fail.
Actual Behavior
EndBuild fails, leading to DTBB Service in invalid state (that issue is being fixed on the DTBB side)
Analysis
No response
Versions & Configurations
No response