I'm getting an error when creating a new project

hello !

I’d like to start a project, but when I create a new project, I get the following error. I don’t understand why! I haven’t modified anything, I just installed the software …

Can you help me?

thx ! :slight_smile:

Running D:/ue5/UE_5.4/Engine/Build/BatchFiles/Build.bat -projectfiles -project=“D:/Projects UE5/try/try.uproject” -game -rocket -progress
Using bundled DotNet SDK version: 6.0.302
Running UnrealBuildTool: dotnet “…..\Engine\Binaries\DotNET\UnrealBuildTool\UnrealBuildTool.dll” -projectfiles -project=“D:/Projects UE5/try/try.uproject” -game -rocket -progress
Log file: E:\Users_Profils\Rick\AppData\Local\UnrealBuildTool\Log_GPF.txt

Generating VisualStudio project files:
Discovering modules, targets and source code for project…
Errors generated while parsing ‘D:\Projects UE5\try\Source\try\try.Build.cs’
D:\Projects UE5\try\Source\try\try.Build.cs(5,14): error CS1001: Identifier expected
D:\Projects UE5\try\Source\try\try.Build.cs(5,14): error CS1514: { expected
D:\Projects UE5\try\Source\try\try.Build.cs(5,14): error CS1513: } expected
D:\Projects UE5\try\Source\try\try.Build.cs(5,14): error CS8803: Top-level statements must precede namespace and type declarations.
D:\Projects UE5\try\Source\try\try.Build.cs(6,1): error CS1524: Expected catch or finally
D:\Projects UE5\try\Source\try\try.Build.cs(5,18): error CS1514: { expected
D:\Projects UE5\try\Source\try\try.Build.cs(5,18): error CS1513: } expected
D:\Projects UE5\try\Source\try\try.Build.cs(5,31): error CS1002: ; expected
D:\Projects UE5\try\Source\try\try.Build.cs(6,2): error CS1513: } expected
D:\Projects UE5\try\Source\try\try.Build.cs(6,2): error CS1513: } expected
D:\Projects UE5\try\Source\try\try.Build.cs(7,2): error CS0116: A namespace cannot directly contain members such as fields, methods or statements
D:\Projects UE5\try\Source\try\try.Build.cs(13,1): error CS1524: Expected catch or finally
D:\Projects UE5\try\Source\try\try.Build.cs(7,12): error CS1514: { expected
D:\Projects UE5\try\Source\try\try.Build.cs(7,33): error CS1026: ) expected
D:\Projects UE5\try\Source\try\try.Build.cs(7,33): error CS1002: ; expected
D:\Projects UE5\try\Source\try\try.Build.cs(7,39): error CS1002: ; expected
D:\Projects UE5\try\Source\try\try.Build.cs(7,39): error CS1513: } expected
D:\Projects UE5\try\Source\try\try.Build.cs(7,55): error CS1002: ; expected
Total execution time: 0.83 seconds
Unhandled exception: System.IO.DirectoryNotFoundException: Could not find a part of the path ‘D:\Projects UE5\try\Intermediate\Build\BuildRules\tryModuleRulesManifest.json’.
at Microsoft.Win32.SafeHandles.SafeFileHandle.CreateFile(String fullPath, FileMode mode, FileAccess access, FileShare share, FileOptions options)
at Microsoft.Win32.SafeHandles.SafeFileHandle.Open(String fullPath, FileMode mode, FileAccess access, FileShare share, FileOptions options, Int64 preallocationSize)
at System.IO.Strategies.OSFileStreamStrategy…ctor(String path, FileMode mode, FileAccess access, FileShare share, FileOptions options, Int64 preallocationSize)
at System.IO.Strategies.FileStreamHelpers.ChooseStrategyCore(String path, FileMode mode, FileAccess access, FileShare share, FileOptions options, Int64 preallocationSize)
at System.IO.Strategies.FileStreamHelpers.ChooseStrategy(FileStream fileStream, String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options, Int64 preallocationSize)
at System.IO.StreamWriter.ValidateArgsAndOpenPath(String path, Boolean append, Encoding encoding, Int32 bufferSize)
at System.IO.StreamWriter…ctor(String path)
at EpicGames.Core.JsonWriter…ctor(FileReference fileName, JsonWriterStyle style) in D:\build++UE5\Sync\Engine\Saved\CsTools\Engine\Source\Programs\Shared\EpicGames.Core\JsonWriter.cs:line 55
at UnrealBuildTool.DynamicCompilation.CompileAndLoadAssembly(FileReference OutputAssemblyPath, IEnumerable1 SourceFileNames, ILogger Logger, IEnumerable1 ReferencedAssembies, IEnumerable1 PreprocessorDefines, Boolean DoNotCompile, Boolean ForceCompile, Boolean TreatWarningsAsErrors) in D:\build\++UE5\Sync\Engine\Saved\CsTools\Engine\Source\Programs\UnrealBuildTool\System\DynamicCompilation.cs:line 344 at UnrealBuildTool.RulesAssembly..ctor(RulesScope Scope, IReadOnlyList1 BaseDirs, IReadOnlyList1 Plugins, IReadOnlyDictionary2 ModuleFileToContext, IReadOnlyList1 TargetFiles, FileReference AssemblyFileName, Boolean bContainsEngineModules, Nullable1 DefaultBuildSettings, Boolean bReadOnly, Boolean bSkipCompile, Boolean bForceCompile, RulesAssembly Parent, ILogger Logger) in D:\build++UE5\Sync\Engine\Saved\CsTools\Engine\Source\Programs\UnrealBuildTool\System\RulesAssembly.cs:line 155
at UnrealBuildTool.RulesCompiler.<>c__DisplayClass9_0.b__0(FileReference _) in D:\build++UE5\Sync\Engine\Saved\CsTools\Engine\Source\Programs\UnrealBuildTool\System\RulesCompiler.cs:line 332
at System.Collections.Concurrent.ConcurrentDictionary2.GetOrAdd(TKey key, Func2 valueFactory)
at UnrealBuildTool.RulesCompiler.CreateProjectRulesAssembly(FileReference ProjectFileName, Boolean bUsePrecompiled, Boolean bSkipCompile, Boolean bForceCompile, ILogger Logger) in D:\build++UE5\Sync\Engine\Saved\CsTools\Engine\Source\Programs\UnrealBuildTool\System\RulesCompiler.cs:line 247
at UnrealBuildTool.ProjectFileGenerator.AddProjectsForAllTargets(PlatformProjectGeneratorCollection PlatformProjectGenerators, List1 AllGames, List1 AllTargetFiles, String Arguments, List1 EngineProjects, List1 GameProjects, Dictionary2 ProjectFileToUProjectFile, Dictionary2 ProgramProjects, Dictionary`2 RulesAssemblies, ILogger Logger) in D:\build++UE5\Sync\Engine\Saved\CsTools\Engine\Source\Programs\UnrealBuildTool\ProjectFiles\ProjectFileGenerator.cs:line 2774
at UnrealBuildTool.ProjectFileGenerator.GenerateProjectFiles(PlatformProjectGeneratorCollection PlatformProjectGenerators, String Arguments, Boolean bCacheDataForEditor, ILogger Logger) in D:\build++UE5\Sync\Engine\Saved\CsTools\Engine\Source\Programs\UnrealBuildTool\ProjectFiles\ProjectFileGenerator.cs:line 1038
at UnrealBuildTool.GenerateProjectFilesMode.ExecuteAsync(CommandLineArguments Arguments, ILogger Logger) in D:\build++UE5\Sync\Engine\Saved\CsTools\Engine\Source\Programs\UnrealBuildTool\Modes\GenerateProjectFilesMode.cs:line 65
at UnrealBuildTool.UnrealBuildTool.Main(String ArgumentsArray) in D:\build++UE5\Sync\Engine\Saved\CsTools\Engine\Source\Programs\UnrealBuildTool\UnrealBuildTool.cs:line 660

The error message only appears if I create a new project in C++. When I do it with a blueprint, it doesn’t happen.

Probably you are missing some visual studio modules/sdks