Reproduction steps:
1. Open the “ReproProject“ project
2. Open the Build Settings window (File > Build Settings…)
3. Build the project by clicking the “Build” button
4. Observe the Console window
Expected result: There is a “OnPostProcessScene“ log printed in the Console window
Actual result: The “OnPostProcessScene“ log is not printed in the Console window
Reproducible with: 2022.1.0a13, 2022.3.24f1, 2023.2.18f1, 6000.0.0b14
Not reproducible with: 2021.3.37f1, 2022.1.0a12
Reproducible on: Windows 11 Pro (22H2)
Not reproducible on: No other environment tested
Workaround: Performing a Clean Build
Note: The issue does not reproduce when the project is built for the first time ever, but reproduces if the project is built again any amount of times after the first time