How to reproduce:
1. Open the attached project "Repro.zip"
2. Build And Run with MyTools>Windows Build With Postprocess
3. Open Visual Studio
4. Open Debug>Attach Unity Debugger
Expected results: The Player is listed in the Unity Instance window
Actual results: The Player is not listed in the Unity Instance window
Reproducible with: 2019.4.33f1, 2020.3.23f1, 2021.2.4f1, 2022.1.0a16
Notes: Commenting out 'options |= BuildOptions.ConnectToHost;' at line 15 fixes the issue