My Unreal engine c++ doesn't work anymore

Hey I cant create C++ projects anymore, nor compile C++ components added to blueprint projects.
I have a few of the error messages here. But ngl. I have no idea what the issues is. I reseted my PC because of this but the issue still persists.

I don’t know where to start looking for issues or how to resolve them. Would really appreciate some help and gonna provide more pictures if needed.

(also my Rider Link wont install)

In my IDEA when I try to compile my project:

image

When I try to create a C++ project:

The project could not be compiled. Would you like to open it in Rider?

Running C:/Program Files/Epic Games/UE_5.5/Engine/Build/BatchFiles/Build.bat Development Win64 -Project=“D:/UnrealEngine/UnrealProject/MyProject/MyProject.uproject” -TargetType=Editor -Progress -NoEngineChanges -NoHotReloadFromIDE
Using bundled DotNet SDK version: 8.0.300
Running UnrealBuildTool: dotnet “…..\Engine\Binaries\DotNET\UnrealBuildTool\UnrealBuildTool.dll” Development Win64 -Project=“D:/UnrealEngine/UnrealProject/MyProject/MyProject.uproject” -TargetType=Editor -Progress -NoEngineChanges -NoHotReloadFromIDE
Log file: C:\Users\patri\AppData\Local\UnrealBuildTool\Log.txt
Available x64 toolchains (1):

  • C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.42.34433
    (Family=14.42.34433, FamilyRank=1, Version=14.42.34435, Is64Bit=True, ReleaseChannel=Latest, Architecture=x64)
    Visual Studio 2022 compiler version 14.42.34435 is not a preferred version. Please use the latest preferred version 14.38.33130
    Creating makefile for MyProjectEditor (no existing makefile)
    Total execution time: 0.63 seconds
    Platform Win64 is not a valid platform to build. Check that the SDK is installed properly and that you have the necessary platform support files (DataDrivenPlatformInfo.ini, SDK.json, etc).

Greetings @The_Jorrick27! Let’s see what we can do here.

Checking your error log and screenshots, the first step (which I’m sure you already covered) would be to ensure that you are using the latest build and updates for UE, Visual Studio, and your OS.

After that, your issue has been tackled on other threads in the community, with different solutions, either disabling settings in Rider as seen here, or switching your Visual current version to an older one.

You can check both threads here, hope this helps!

1 Like

So I have the same setup on my laptop and everything works fine… Same IDE , same unreal version etc… Because of that I wiped my PC and reinstalled everything from scratch . Same issue =/

So it isn’t rider related…

now that i uninstalled it and only have Visual Studio 2022 installed it still shows the following error when attempting to create a new C++ project.

The project could not be compiled. Would you like to open it in None?

Running C:/Program Files/Epic Games/UE_5.5/Engine/Build/BatchFiles/Build.bat Development Win64 -Project=“D:/UnrealEngine/UnrealProject/MyProject3/MyProject3.uproject” -TargetType=Editor -Progress -NoEngineChanges -NoHotReloadFromIDE
Using bundled DotNet SDK version: 8.0.300
Running UnrealBuildTool: dotnet “…..\Engine\Binaries\DotNET\UnrealBuildTool\UnrealBuildTool.dll” Development Win64 -Project=“D:/UnrealEngine/UnrealProject/MyProject3/MyProject3.uproject” -TargetType=Editor -Progress -NoEngineChanges -NoHotReloadFromIDE
Log file: C:\Users\patri\AppData\Local\UnrealBuildTool\Log.txt
Available x64 toolchains (1):

  • C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.42.34433
    (Family=14.42.34433, FamilyRank=1, Version=14.42.34435, Is64Bit=True, ReleaseChannel=Latest, Architecture=x64)
    Visual Studio 2022 compiler version 14.42.34435 is not a preferred version. Please use the latest preferred version 14.38.33130
    Creating makefile for MyProject3Editor (no existing makefile)
    Total execution time: 0.50 seconds
    Platform Win64 is not a valid platform to build. Check that the SDK is installed properly and that you have the necessary platform support files (DataDrivenPlatformInfo.ini, SDK.json, etc).

Visual Studio 2022 has some banned components in UE5.5… you must update them to the required versions.

1 Like

Alright so I now fixed it … Installing windows SDK manually, updating windows, repairing visual studio and
copying “C:\Program Files\Epic Games\UE_5.5\Engine\Binaries\ThirdParty\DotNet\8.0.300\win-x64\host\fxr\8.0.5\hostfxr.dll” to C:\Program Files\Epic Games\UE_5.5\Engine\Binaries\DotNET" seemed to fix it… I don’t know what exactly fixed it there but at least i can create a new C++ project now ^^ Thx for the help =)

1 Like

You really just had to go to the Visual Studio installer and uninstall version 14.42.34435 and then install version 14.38.33130

Ah, okay … Yeah sorry am new to working on big projects. I know how to code but that’ more or less it xD

You just need to read the log messages carefully… That helps a lot!!
Best Regards!!

1 Like

I have the same problem and tried your steps and it works. Maybe installing windows SDK from Microsoft not in Visual Studio is the key

The installer doesn’t use “versions” like that so it’s not nearly that simple. There’s some github discussion here, but really it’s a (massive!) bug unreal needs to get working. How to install specific version of Visual Studio 2022 - Stack Overflow

Oh dear god no. If anyone is searching on this problem, this is the cause, not the solution. A new install of Community gives you MSVC 14.42. Making a C++ project only works as far as 14.38.

Do not update until you know this is fixed. Downgrade if anything.

Error=“UnrealBuildTool requires at minimum the MSVC 14.34.31933 toolchain. Please install a later toolchain such as 14.38.33130 from the Visual Studio installer.”

Visual Studio 2022 compiler version 14.42.34436 is not a preferred version. Please use the latest preferred version 14.38.33130

Yeah as I already set, installing it manually, to get the version they recommend fixed ti for me… kind of a pain thou xD