ERROR run dotnet.exe, ExitCode=6

Hey, I have a problem. When I try to make a game, I get an error

… done!
UATHelper: Pakowanie (Windows): Cleaning Temp Paths…
UATHelper: Pakowanie (Windows): BUILD SUCCESSFUL
UATHelper: Pakowanie (Windows): Setting up ProjectParams for E:\projekt gry\MojProjekt\najnowszy.uproject
UATHelper: Pakowanie (Windows): ********** BUILD COMMAND STARTED **********
UATHelper: Pakowanie (Windows): Running: E:\epic\UE_5.5\Engine\Binaries\ThirdParty\DotNet\8.0.300\win-x64\dotnet.exe “E:\epic\UE_5.5\Engine\Binaries\DotNET\UnrealBuildTool\UnrealBuildTool.dll” najnowszy Win64 Development -Project=“E:\projekt gry\MojProjekt\najnowszy.uproject” -Manifest=“E:\projekt gry\MojProjekt\Intermediate\Build\Manifest.xml” -remoteini=“E:\projekt gry\MojProjekt” -skipdeploy -log=“C:\Users\Barti\AppData\Roaming\Unreal Engine\AutomationTool\Logs\E+epic+UE_5.5\UBA-najnowszy-Win64-Development.txt”
UATHelper: Pakowanie (Windows): Log file: C:\Users\Barti\AppData\Roaming\Unreal Engine\AutomationTool\Logs\E+epic+UE_5.5\UBA-najnowszy-Win64-Development.txt
UATHelper: Pakowanie (Windows): Creating makefile for najnowszy (no existing makefile)
UATHelper: Pakowanie (Windows): Visual Studio 2022 is installed, but is out of date or missing a valid C++ toolchain (minimum version 14.38.33130, preferred version 14.38.33130). Please update Visual Studio 2022 to 17.8 or later and verify that the “MSVC v143 - VS 2022 C++ x64/x86 build tools (v14.38-17.8)” component is selected in the Visual Studio 2022 installation options.
UATHelper: Pakowanie (Windows): Total execution time: 1.16 seconds
UATHelper: Pakowanie (Windows): Visual Studio 2022 x64 must be installed in order to build this target.
UATHelper: Pakowanie (Windows): Took 1,34s to run dotnet.exe, ExitCode=6
UATHelper: Pakowanie (Windows): UnrealBuildTool failed. See log for more details. (C:\Users\Barti\AppData\Roaming\Unreal Engine\AutomationTool\Logs\E+epic+UE_5.5\UBA-najnowszy-Win64-Development.txt)
UATHelper: Pakowanie (Windows): AutomationTool executed for 0h 0m 3s
UATHelper: Pakowanie (Windows): AutomationTool exiting with ExitCode=6 (6)
UATHelper: Pakowanie (Windows): BUILD FAILED

Can someone help me? What am I doing wrong?

Greetings @KurvinoxMichal! Let’s try to figure this one out.

From the contents of your provided log, a toolchain from Visual Studio is missing or outdated. The following lines are calling out the issue:

UATHelper: Pakowanie (Windows): Visual Studio 2022 is installed, but is out of date or missing a valid C++ toolchain (minimum version 14.38.33130, preferred version 14.38.33130). Please update Visual Studio 2022 to 17.8 or later and verify that the “MSVC v143 - VS 2022 C++ x64/x86 build tools (v14.38-17.8)” component is selected in the Visual Studio 2022 installation options.

In order to fix the issue, and correct any other faulty componets, please follow the UE setup guide for Visual Studio, which also includes the supported versions for all software elements: