C# – Choose TargetFrameworks based on CPU Platform
I have a legacy C# application compiled for x86. I am upgrading it to VS 2022 and enabling x64 in addition to x86. I would like to compile the legacy x86 using .Net framework 4.5 and x64 using .Net 8.0. So, the valid combinations are x86-.NetFramework4.5 and x64-.Net6.0.