UE 5.5.4 can't find visual studio 2022

I’m trying to convert my blueprint only project to c++ project so when I try to add a class, ue gives me an error. I have tried uninstalling and reinstalling both ue5.5.4 and visual studio 2022, redid most recent windows sdk setup. Engine still can’t find the compiler. I had some other errors show up too:

(microsoft.visualstudio.component.windows10sdk.18362: couldn’t find a matched package)

I also tried to repair the visual studio setup on the vs downloader, but when I restarted my pc to finish the process it said that there was an error so it couldn’t repair.

I’m using windows 10 and both UE5.5.4 and visual studio 2022 are downloaded on my D drive.

Hello there @mezgit1!

From the error you are getting, it sounds like UE is not recognizing your installed SDK. If the setup was working before, it could have been affected by a recent update, or another type of system change. The best approach to resolve it, is to check the UE guude below, and double-check that all installed elements for VS are present, and that they have the proper versions to work with your UE version:

Once you have completed the process, we just need for the project to detect the updates. In order to do so, perform a cache clear, deleting the following folders from your main directory:

  • Intermediate
  • Saved
  • Binaries
  • .vs
  • DerivedDataCache

Also, find the following file, and delete it as well:

%APPDATA%\Unreal Engine\Common\Config\UnrealBuildTool\BuildConfiguration.xml

After that, go to your project and choose “Generate Visual Studio project files”, allow it to rebuild, then open UE again.

As for the convertion process, the resourses below should be useful for the task ahead:

Convert Blueprints To C++ (Video guide)