Tried generating C++ files on a blueprint project in UE5, got these error messages -
Running D:/UE_5.0/Engine/Binaries/DotNET/UnrealBuildTool/UnrealBuildTool.exe -projectfiles -project=“D:/Unreal Projects/GEPlaygroundC++/GEPlaygroundC++.uproject” -game -rocket -progress -log=“D:\Unreal Projects\GEPlaygroundC++/Saved/Logs/UnrealVersionSelector-2022.07.14-17.59.05.log”
Log file: D:\Unreal Projects\GEPlaygroundC++\Saved\Logs\UnrealVersionSelector-2022.07.14-17.59.05.log
Log file: C:\Users\Daniel\AppData\Local\UnrealBuildTool\Log_GPF.txt
Some Platforms were skipped due to invalid SDK setup: Android.
See the log file for detailed information
Discovering modules, targets and source code for project…
WARNING: Errors generated while parsing ‘D:\Unreal Projects\GEPlaygroundC++\Source\GEPlaygroundC++\GEPlaygroundC++.Build.cs’
D:\Unreal Projects\GEPlaygroundC++\Source\GEPlaygroundC++\GEPlaygroundC++.Build.cs(5,27): error CS1514: { expected
D:\Unreal Projects\GEPlaygroundC++\Source\GEPlaygroundC++\GEPlaygroundC++.Build.cs(5,27): error CS1513: } expected
D:\Unreal Projects\GEPlaygroundC++\Source\GEPlaygroundC++\GEPlaygroundC++.Build.cs(5,27): error CS8652: The feature ‘top-level statements’ is currently in Preview and unsupported. To use Preview features, use the ‘preview’ language version.
D:\Unreal Projects\GEPlaygroundC++\Source\GEPlaygroundC++\GEPlaygroundC++.Build.cs(5,27): error CS8803: Top-level statements must precede namespace and type declarations.
D:\Unreal Projects\GEPlaygroundC++\Source\GEPlaygroundC++\GEPlaygroundC++.Build.cs(5,30): error CS1525: Invalid expression term ‘:’
D:\Unreal Projects\GEPlaygroundC++\Source\GEPlaygroundC++\GEPlaygroundC++.Build.cs(5,30): error CS1002: ; expected
D:\Unreal Projects\GEPlaygroundC++\Source\GEPlaygroundC++\GEPlaygroundC++.Build.cs(5,30): error CS1022: Type or namespace definition, or end-of-file expected
D:\Unreal Projects\GEPlaygroundC++\Source\GEPlaygroundC++\GEPlaygroundC++.Build.cs(5,32): error CS0116: A namespace cannot directly contain members such as fields or methods
D:\Unreal Projects\GEPlaygroundC++\Source\GEPlaygroundC++\GEPlaygroundC++.Build.cs(6,2): error CS1513: } expected
D:\Unreal Projects\GEPlaygroundC++\Source\GEPlaygroundC++\GEPlaygroundC++.Build.cs(7,9): error CS0116: A namespace cannot directly contain members such as fields or methods
D:\Unreal Projects\GEPlaygroundC++\Source\GEPlaygroundC++\GEPlaygroundC++.Build.cs(7,45): error CS1026: ) expected
D:\Unreal Projects\GEPlaygroundC++\Source\GEPlaygroundC++\GEPlaygroundC++.Build.cs(7,45): error CS1002: ; expected
D:\Unreal Projects\GEPlaygroundC++\Source\GEPlaygroundC++\GEPlaygroundC++.Build.cs(7,45): error CS0116: A namespace cannot directly contain members such as fields or methods
D:\Unreal Projects\GEPlaygroundC++\Source\GEPlaygroundC++\GEPlaygroundC++.Build.cs(7,51): error CS1022: Type or namespace definition, or end-of-file expected
D:\Unreal Projects\GEPlaygroundC++\Source\GEPlaygroundC++\GEPlaygroundC++.Build.cs(7,67): error CS1002: ; expected
D:\Unreal Projects\GEPlaygroundC++\Source\GEPlaygroundC++\GEPlaygroundC++.Build.cs(23,1): error CS1022: Type or namespace definition, or end-of-file expected
ERROR: Unhandled exception: System.IO.DirectoryNotFoundException: Could not find a part of the path ‘D:\Unreal Projects\GEPlaygroundC++\Intermediate\Build\BuildRules\GEPlaygroundC++ModuleRulesManifest.json’.
at System.IO.FileStream.ValidateFileHandle(SafeFileHandle fileHandle)
at System.IO.FileStream.CreateFileOpenHandle(FileMode mode, FileShare share, FileOptions options)
at System.IO.FileStream…ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options)
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\Source\Programs\Shared\EpicGames.Core\JsonWriter.cs:line 56
at UnrealBuildTool.DynamicCompilation.CompileAndLoadAssembly(FileReference OutputAssemblyPath, HashSet1 SourceFileNames, List
1 ReferencedAssembies, List1 PreprocessorDefines, Boolean DoNotCompile, Boolean ForceCompile, Boolean TreatWarningsAsErrors) in d:\build\++UE5\Sync\Engine\Source\Programs\UnrealBuildTool\System\DynamicCompilation.cs:line 344 at UnrealBuildTool.RulesAssembly..ctor(RulesScope Scope, List
1 BaseDirs, IReadOnlyList1 Plugins, Dictionary
2 ModuleFileToContext, List1 TargetFiles, FileReference AssemblyFileName, Boolean bContainsEngineModules, Nullable
1 DefaultBuildSettings, Boolean bReadOnly, Boolean bSkipCompile, Boolean bForceCompile, RulesAssembly Parent) in d:\build++UE5\Sync\Engine\Source\Programs\UnrealBuildTool\System\RulesAssembly.cs:line 136
at UnrealBuildTool.RulesCompiler.CreateProjectRulesAssembly(FileReference ProjectFileName, Boolean bUsePrecompiled, Boolean bSkipCompile, Boolean bForceCompile) in d:\build++UE5\Sync\Engine\Source\Programs\UnrealBuildTool\System\RulesCompiler.cs:line 297
at UnrealBuildTool.ProjectFileGenerator.AddProjectsForAllTargets(PlatformProjectGeneratorCollection PlatformProjectGenerators, List1 AllGames, List
1 AllTargetFiles, String[] Arguments, ProjectFile& EngineProject, List1& GameProjects, Dictionary
2& ProgramProjects, Dictionary`2& RulesAssemblies) in d:\build++UE5\Sync\Engine\Source\Programs\UnrealBuildTool\ProjectFiles\ProjectFileGenerator.cs:line 2384
at UnrealBuildTool.ProjectFileGenerator.GenerateProjectFiles(PlatformProjectGeneratorCollection PlatformProjectGenerators, String[] Arguments) in d:\build++UE5\Sync\Engine\Source\Programs\UnrealBuildTool\ProjectFiles\ProjectFileGenerator.cs:line 891
at UnrealBuildTool.GenerateProjectFilesMode.Execute(CommandLineArguments Arguments) in d:\build++UE5\Sync\Engine\Source\Programs\UnrealBuildTool\Modes\GenerateProjectFilesMode.cs:line 234
at UnrealBuildTool.UnrealBuildTool.Main(String[] ArgumentsArray) in d:\build++UE5\Sync\Engine\Source\Programs\UnrealBuildTool\UnrealBuildTool.cs:line 612
Appreciate any pointers. I’m running the latest version of Visual Studio 2019 right now.