Unreal engine 5.5.4 not working with Visual Studio 2022

I’m having a problem where whenever I try to launch visual studio 2022 from my ue5 project it opens up a cmd with the wrong path location for the visual studio 2022 build tools. I have followed epic games’s tutorial for installing vs 2022, and reinstalling it didn’t help. Manually opening the project from vs works, but once I try to run the development mode with local windows it games me this error Game files required to initialize the global shader library are missing from:

C:/Users/Adrian/Documents/Unreal Projects/GameIdea1/Content/

Please make sure the game is installed correctly.
In the ue5 editor prefrences I have the code editor set to visual studio 2022, and refreshing the code doesn’t help

Hi,

I’m not sure, but it may solve your issue.

Regenerate your project solution, open it. On Visual Studio define your game as project initialization by right clicking on your game solution in the solution explore.

I’ve got something similar and I’ve solved in this way.

You may found something like this, the UE5 solution is the default.

So after you define your game as default initialization, it gets bold.

May that help you, bye!

So I have set the game as the default solution, but it still gives me this error

I have set the game as default solution and it is bold but it still gives me this error

When you try to compile your game, do you get any error on your visual studio output?

It seems something with your project, have you tried to create another UE project in order to check if get the same error?

Yep, I have created a different project and it works. From the current project I deleted the .vs and .vscode folders. Now when I try running the game development in vs it tells me if I want to use the latest correct build, and when trying to open ue5 it gets stuck on performing replace references. Same thing happens in vscode, but there it highlights this line. The only thing I have added in c++ are a 2 classes, where I followed a tutorila. For the guy it worked with no problems.
image

Try the following steps:

After all, use this video as reference in way to add classes: https://www.youtube.com/watch?v=FBpnOuCgHu4

This may solve your issue, good luck.

After doing the steps you mentione I get this in vs. It tells me that there were build error, the in tells me that it was built with a different engine version. Same applies to if I try to launch it from epic games. This is a clone but I got the same result with the original, and it went back to normal after I restored the original files. Additionally vs give me exit code 8
The command “C:\UE_5.5\Engine\Build\BatchFiles\Build.bat GameIdea1Editor Win64 Development -Project=“C:\Users\Adrian\Documents\Unreal Projects\GameIdeaTEST\GameIdeaTEST.uproject” -WaitMutex -FromMsBuild -architecture=x64” exited with code 8.


Could you please post here the output error? I mean the compile output, instead of the list error.

I’d like to check what error we are getting.

Usually we got this error when we try to open the unreal engine from visual studio and it it already open, so make sure the engine is closed before open it.

I’m assuming you mean this? UE5 was closed before trying the operation. This is the result when clicking yes to running the last successful build

Hi,

Let’s check this image, there are a lot of information.

(1) Your engine is open, when you compile from Visual Studio, it’s a good practice close it in order to avoid hot reload or conflict with Live Code. That’s the reason you are getting that error, I’ve told you before.

(3) Clique on ‘YES’, and compile your game with UE closed.

(2) After you compile, show here the Visual Studio compile output.

We need to know the compile output in order to take some action, the compile output tell us if we have committed any mistakes when coding, that’s why I’m asking you that.

Hi, like I said ue5 was closed when performing this. the ue5 from the task bar is the open tab that tells me to recompile. When I click on yes it tells me that it failed and that I should do it manually

Ok, cool.

Your game is not built yet, if you look your game folders, you don’t have the be binaries or Intermediate folders.

So let’s start with that.

  1. First let’s build our game solution Build > Build GameIdeaTEST or simple (Ctrl + B or Ctrl + Shift + B).

  2. Did you get any output error? If so try to fix or print here.

  3. After fix any error, you can try initialize your game in default or debug mode.

These are the errors I got after trying to build the project from vs

My friend,

Could you please share the output instead of the error list?

Please share the output - item (2) on the follwing image.

Most of the visual studio “error list” when it comes to unreal engine means nothing, you should use the compile output - item (2).


Does UE was closed when you have tried to compile?

It seems it was open, and that was the only error the make file has found.

If it was open, close it, it does not matter if it is another project. Simple close it.


As you can I see I have no other projects open

That’s really crazy, I mean a lot.

I don’t know what is the problem. It seems something with the engine, but before presume anything.

  1. From this last video, we can see the compile get stuck at the same step. So we can try to create another Unreal’s C++ Template, like First Person template and see if it opens with no problem, in case it succeed, so the problem is the current project, so move your C++ classes.

  2. Check if Visual Studio 2022 is using compiler version 14.38, maybe you are using 14.43, if you are using the right version, all remains is try to reinstall the engine.

Alright so it seems like maybe there was a problem with the project? I have no idea what would cause it though. What I did was migrate all of the bluperints I had written to a new projects and now it works.