I’m trying to convert my C++ project to UE5, and it fails to start, because it can’t be compiled. AFAIC, there’s no built-in compiler in VSCode, so it’s impossible for me to know what the compilation errors are.
So the question is, how can I do it? Is there maybe a way to convert it to Visual Studio to try and compile it there? Or any other ways?
Thank you!
Actually, even new C++ projects don’t start. I assume that the required Visual Studio is not installed or installed incorrectly, but the documentation doesn’t exist (https://docs.unrealengine.com/5.0/en-US/setting-up-your-production-pipeline-in-unreal-engine/DevelopmentSetup/VisualStudioSetup/).
Is there any reliable documentation on how to properly setup Visual Studio for UE5?
Thanks!
Try deleting your .sln , intermediate, saved and the hidden file .vs in your project folder.
Than right click on your uproject file and click on switch unreal engine version, than click on 5.0
Should generate new files you just deleted and try clicking on your new .sln file and click play. Should work
Okay, I managed to start a new C++ project after installing .Net Core SDK v.3.1.417 (maybe with the newest v.6 it will work too).
As for existing projects from previous engine versions, you can generate .sln files by running “UE_5.0\Engine\Binaries\DotNET\UnrealBuildTool\UnrealBuildTool.exe -projectfiles -project=“%Full address of your .uproject file%” -game -engine -rocket -progress” in Command Prompt.
Note that the length of the address matters. For me it didn’t work until I moved the project folder to a disk volume root. So if you get an error that “.uproject file cannot be opened” or such, try shortening the path.
Alternatively, if you want to generate VSCode files, add “-VSCode” argument at the end.
Plus: some third-party plugins don’t have UE5 versions yet. You need to disable them. To do that, open your .uproject file with Notepad, find those plugins and delete references to them.
I guess that’s it.
P.S. If you can already open your project in the engine and you want to change your IDE, go to Editor Preferences → General-Source Code and change Source Code Editor there. Then restart the editor, and click Tools → Generate %Your IDE% project.