VS: Fix CSharp sources inside build directory

Fixes: #22104
4 files changed