I have been having similar problems and took me and entire day to figure it out
so this is how i solved it
install winutil “GitHub - ChrisTitusTech/winutil: Chris Titus Tech's Windows Utility - Install Programs, Tweaks, Fixes, and Updates” and follow the steps
download revo uninstaller through winutil
uninstall visual studio 2022 and the installer through it, remove all linked registry and packages
install visual studio 2022 again through the official website
have the workloads based on your needs
basic to get started
- .NET desktop development
- Desktop development with C++
- Game development with C++ (make sure unreal Engine Test Adapter is marked)
Install everything
go to your project.sln and open it, run a check on the configuration and ensure everything is good
close your vs 2022
right click your .uproject file and select Generate Visual Studio project files, wait till it finishes
open your project.sln
run the project
should be solved