VS: Fix SLNX generation so CSharp projects build in the IDE

Add an explicit solution-level per-project `Platform` for `.csproj`
projects even if it is the same as the solution-wide `Platform`.
Otherwise the VS IDE skips building it.

Fixes: #27330
3 files changed