VS: Fix debugging of C++ executables if CSharp is enabled

Fixes: #16867
12 jobs for vs_fix_cpp_debugging_with_cs_enabled
Status Job ID Name Coverage
  External
passed ghostflow-branch-check-master

passed ghostflow-commit-check

passed ghostflow-stager

passed ghostflow-stager

passed ghostflow-stager

passed ghostflow-stager

passed ghostflow-stager

passed ghostflow-stager

passed ghostflow-stager

passed ghostflow-stager

passed ghostflow-stager

passed ghostflow-stager