How do you update c++ project engine version?

Right click your .EXE .UPROJECT file in your project folder then switch engine versions then compile.
But first if you haven’t downloaded the latest version of Unreal Engine here is a video for your help if you want to use the Github route.

The other way is to just download the new engine version using the Epic Games Launcher.

How do you upgrade the engine version of a c++ project. I have tried various things but it doesn’t work. I find it weird that it is so difficult to do something so fundamental.

I have tried that a lot of times. It looks like this in the beginning.

324099-screenshot-1.png

Then when i switch engine version it looks like this:

324100-screenshot-2.png

I click the project file to start and it gives me the following error message:

324123-screenshot-3.png

I press yes and it gives me this message:

324124-screenshot-4.png

Binary modules are not compatible between engine version, you need to recompile them, there API diffrences so errors may apper and engine can’t recompile module automatically

Once you switch enigne version, regenerate VS project files (right click uproject file), open VS solution (sln file), try to compile, fix any errors that appear.

When I do that it just compiles the game in the previous version, even though I have changed the engine version and generated the project files in the uproject file.

Open uproject file in text editor and check what version you got set in there

Here is a screenshot, it says its in the correct version:

Look ok. you sure you module compiled correctly?

When I open the solution it starts parsing the files:

when its done I build it:

324927-screenshot-8.png

It says build succeeded:

324928-screenshot-9.png

when I then debug it, it opens in the previous engine:

But if I then change anything in the code it cant build anymore and gives me this message:

BTW thanks for the help and I’m answering within an hour but me answer needs to be reviewed before it gets published.

Try deleting .vs file and Intermediate folder in project, and regenerate VS project again

I don’t know if you mean the solution or .vs folder so I tried both:

Here I delete the vs and intermediate folder:

325339-screenshot-12.png

Then I generate visual studio project files. I then go in the solution and try to reload the project which gives me an error message

325351-screenshot-17.png

325352-screenshot-18.png

Here I try the other option and delete these two:

325353-screenshot-14.png

But when I generate visual studio project files it doesn’t create the solution.

Do not do generation with VS open and there no way sln file is not generated, and it should be. The most raw state if UE4 project have only Config, Content, Source (if it is C++) and uproject file, this is what you should contain project in repository if you had one. Try to reduce it to that state and generate VS files

Before I generate visual studio project files:

325542-screenshot-19.png

After:

325543-screenshot-20.png

It doesn’t create the sln file