Have problem in creating c++ profile

I delete donnet document mistaten,and i redownload .Net for dotnet, and put it in request document folder,but it cant work report “System.outofMemoryException”
ue5 version is 5.1.0
visual studio 2022 version is 17.4.1
.Net version is 6.0.403
(I m not native speaker, maybe there are some spelling or grammer mistake,please ignore it:) )

Running D:/Epic/UE_5.1/Engine/Build/BatchFiles/Build.bat -projectfiles -project=“D:/pre/我的项目/我的项目.uproject” -game -rocket -progress
Running UnrealBuildTool: dotnet “…..\Engine\Binaries\DotNET\UnrealBuildTool\UnrealBuildTool.dll” -projectfiles -project=“D:/pre/???/???.uproject” -game -rocket -progress
Log file: C:\Users\Rick Zheng\AppData\Local\UnrealBuildTool\Log_GPF.txt

Some Platforms were skipped due to invalid SDK setup: IOS, Android, Linux, LinuxArm64.
See the log file for detailed information

Discovering modules, targets and source code for project…
Binding IntelliSense data…
Binding IntelliSense data… 100%
Writing project files…
Writing project files… 0%
Unhandled exception: System.OutOfMemoryException: Exception of type ‘System.OutOfMemoryException’ was thrown.
at System.Text.StringBuilder.ToString()
at UnrealBuildTool.VCProjectFile.WriteProjectFile(List1 InPlatforms, List1 InConfigurations, PlatformProjectGeneratorCollection PlatformProjectGenerators, ILogger Logger) in D:\build++UE5\Sync\Engine\Saved\CsTools\Engine\Source\Programs\UnrealBuildTool\ProjectFiles\VisualStudio\VCProject.cs:line 1381
at UnrealBuildTool.ProjectFileGenerator.WriteProjectFiles(PlatformProjectGeneratorCollection PlatformProjectGenerators, ILogger Logger) in D:\build++UE5\Sync\Engine\Saved\CsTools\Engine\Source\Programs\UnrealBuildTool\ProjectFiles\ProjectFileGenerator.cs:line 2812
at UnrealBuildTool.VCProjectFileGenerator.WriteProjectFiles(PlatformProjectGeneratorCollection PlatformProjectGenerators, ILogger Logger) in D:\build++UE5\Sync\Engine\Saved\CsTools\Engine\Source\Programs\UnrealBuildTool\ProjectFiles\VisualStudio\VCProjectFileGenerator.cs:line 480
at UnrealBuildTool.ProjectFileGenerator.GenerateProjectFiles(PlatformProjectGeneratorCollection PlatformProjectGenerators, String[] Arguments, ILogger Logger) in D:\build++UE5\Sync\Engine\Saved\CsTools\Engine\Source\Programs\UnrealBuildTool\ProjectFiles\ProjectFileGenerator.cs:line 1176
at UnrealBuildTool.GenerateProjectFilesMode.Execute(CommandLineArguments Arguments, ILogger Logger) in D:\build++UE5\Sync\Engine\Saved\CsTools\Engine\Source\Programs\UnrealBuildTool\Modes\GenerateProjectFilesMode.cs:line 233
at UnrealBuildTool.UnrealBuildTool.Main(String[] ArgumentsArray) in D:\build++UE5\Sync\Engine\Saved\CsTools\Engine\Source\Programs\UnrealBuildTool\UnrealBuildTool.cs:line 648

Did you figure it out? I have a similar issue and so far no luck fixing it.

1 Like

Same problem here. No where to find a solution for this.

1 Like

Greetings @oAde87o !

We welcome you to the Unreal Engine community! :medal_sports:

Just so you’re aware, this topic has been moved from the International forum category to the Programming & Scripting - C++ forum category. I do realize that English is not your native language, but we want to place your discussion in the best forum.

Just remember, when posting, please review the categories to ensure your topic is posted in the most relevant space.

Wishing you the best of luck in your game dev journey!

'- Your Friendly Neighborhood Moderator :smiley:

I’m with the same problem here…already format meu pc, recent install and dont know how to fix…it’s a engine bug?

They update the page about setting the visual studio for unreal engine adding 5.1 with new specific requisites and now it’s working!!!:partying_face: :+1:t2:

I followed the installation step by step, but it still doesn’t work

Hi @oAde87o , @Ciullss_7Games ,

It might help you, please check:

You need to put …\Program Files\dotnet\dotnet.exe in the right order in the system environments.

1 Like