Thanks for sharing the details! This issue happened because runtimes were removed without understanding dependency impact. Visual Studio does not auto- restore deleted runtimes.
please follow the below steps
- Close Visual studio completely and open installer.
- click Modify on visual studio 2022, go to workloads and ensure .NET Desktop Development is checked.
- Switch to individual components, click modify or install and restart the machine.
- Or alternative go to official Microsoft .NET download page.
- Install Desktop runtime not SDK choose x64 and install .NET Framework 4.8 runtime
- Restart the system after completing the above steps.