Reproduction steps:
1. Open the attched “BugRepro” project
2. In Project Settings (Edit > Project Settings…) Player tab, set the Scripting Backend to “IL2CPP”
3. Build the Project
Expected result: The build is successful
Actual result: The build fails and “Building Library\Bee\artifacts\WinPlayerBuildProgram\ManagedStripped failed with output:” is logged in the Console
Reproducible with: 2023.3.0b1, 6000.0.25f1, 6000.1.0a2
Not reproducible with: 2021.3.45f1, 2022.3.51f1, 2023.3.0a19
Reproducible on: Windows 11
Not reproducible on: No other environments tested
Note: If you delete the “Assets/Scripts/ErrorScript” script, the build will be successful