Visual Studio and Unreal Engine 5

When I want to create new Unreal Project I have this massage:

An error occurred while trying to generate project files.

Running C:/Program Files/Epic Games/UE_5.0/Engine/Binaries/DotNET/UnrealBuildTool/UnrealBuildTool.exe -projectfiles -project=“C:/Users/lukas/Documents/Unreal Projects/MyProject2/MyProject2.uproject” -game -rocket -progress

It was not possible to find any compatible framework version

The framework ‘Microsoft.NETCore.App’, version ‘3.1.0’ was not found.

  • The following frameworks were found:

    5.0.14 at [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]

You can resolve the problem by installing the specified framework and/or SDK.

The specified framework can be found at:

What I need to do?

Hey @kukertuker1! Welcome to the forums!

If you need . net core 3.0 you should open your Visual Studio Installer → Click modify on your desired version of visual studio → and open Individual Components. You should be able to add what you need there.

I hope the above provides the solution you need!

you need the .net 3.1 installed
you have version 5
some of UE cmd tools req .net 3.1 to run
you can add it through vis studio or just get the runtime from the link.