Reproduction steps:
1. Open the user's attached project "Minimal Build Stripping.zip"
2. Build the project
3. Observe the Build Report in the Editor.log
Expected result: Files from packages that are not used are not included in the build
Actual result: Files from packages such as uGUI, Visual Scripting and Test Framework are included even though they are not used
Reproducible with: 2019.4.37f1, 2020.3.33f1, 2021.3.0f1, 2022.1.0b15, 2022.2.0a10
Note: Reproducible with different build targets