VS: Default TargetFrameworkVersion to v4.7.2 for VS 2022
MSBuild defaults to v4.0 but VS 2022 does not install it anymore. Explicitly specify a newer framework version by default. Use a version that VS 2022 installs without selecting a separate component.
Add fields to the VS generator to select a target framework.
Migrate the existing default for VS 12 .NET CF for Windows CE.
Report the values in CMAKE_VS_*
variables and use them for
the CSharp compiler id project too.
Fixes: #22835 (closed)
Issue: #22849
Backport: release
Edited by Brad King