I know it’s been a few weeks since you posted @neojac , I was wondering if you found a solution for this on your side. I’m currently working through an issue which exhibits similar behavior.
Mine appears to to be isolated to HoloLens third party libraries. My initial assumption is that I don’t have an adequate Sdk version for those libraries.
My environment is a dev machine with VS2022, VS2019, VS2017, and VS2010 installed. Unfortunately I need all of the installations to support a number of legacy projects.
Will update if I come across a solution. GenerateProjectFiles output shown below. Log_GPF.txt can be provided if necessary.
Setting up Unreal Engine project files...
Using bundled DotNet SDK version: 6.0.302
Building UnrealBuildTool...
Microsoft (R) Build Engine version 17.2.0+41abc5629 for .NET
Copyright (C) Microsoft Corporation. All rights reserved.
Build succeeded.
0 Warning(s)
0 Error(s)
Time Elapsed 00:00:01.05
Log file: D:\dillonja_unreal\Engine\Programs\UnrealBuildTool\Log_GPF.txt
Some Platforms were skipped due to invalid SDK setup: Mac, IOS, Android, Linux, LinuxArm64, TVOS.
See the log file for detailed information
Compiled assembly file 'D:\dillonja_unreal\Engine\Intermediate\Build\BuildRules\UE5Rules.dll' appears to be for a newer CLR version or is otherwise invalid. Unreal Build Tool will try to recompile this assembly now. (Exception: Could not load file or assembly 'D:\dillonja_unreal\Engine\Intermediate\Build\BuildRules\UE5Rules.dll'. Format of the executable (.exe) or library (.dll) is invalid.)
D:\dillonja_unreal\Engine\Platforms\Hololens\Source\ThirdParty\libPNG\UElibPNG_HoloLens.Build.cs(7,35): error CS0246: The type or namespace name 'UElibPNG' could not be found (are you missing a using directive or an assembly reference?)
D:\dillonja_unreal\Engine\Platforms\Hololens\Source\ThirdParty\Vorbis\VorbisFile_HoloLens.Build.cs(7,37): error CS0246: The type or namespace name 'VorbisFile' could not be found (are you missing a using directive or an assembly reference?)
D:\dillonja_unreal\Engine\Platforms\Hololens\Source\ThirdParty\Vorbis\Vorbis_HoloLens.Build.cs(7,33): error CS0246: The type or namespace name 'Vorbis' could not be found (are you missing a using directive or an assembly reference?)
D:\dillonja_unreal\Engine\Platforms\Hololens\Source\ThirdParty\libcurl\libcurl_HoloLens.Build.cs(5,34): error CS0246: The type or namespace name 'libcurl' could not be found (are you missing a using directive or an assembly reference?)
D:\dillonja_unreal\Engine\Platforms\Hololens\Source\ThirdParty\zlib\zlib_HoloLens.Build.cs(7,31): error CS0246: The type or namespace name 'zlib' could not be found (are you missing a using directive or an assembly reference?)
D:\dillonja_unreal\Engine\Platforms\Hololens\Source\ThirdParty\BLAKE3\BLAKE3_HoloLens.Build.cs(7,33): error CS0246: The type or namespace name 'BLAKE3' could not be found (are you missing a using directive or an assembly reference?)
D:\dillonja_unreal\Engine\Platforms\Hololens\Source\ThirdParty\HLMediaLibrary\HLMediaLibrary_HoloLens.Build.cs(5,41): error CS0246: The type or namespace name 'HLMediaLibrary' could not be found (are you missing a using directive or an assembly reference?)
D:\dillonja_unreal\Engine\Platforms\Hololens\Source\ThirdParty\libOpus\libOpus_HoloLens.build.cs(5,34): error CS0246: The type or namespace name 'libOpus' could not be found (are you missing a using directive or an assembly reference?)
D:\dillonja_unreal\Engine\Platforms\Hololens\Source\ThirdParty\HLMediaLibrary\HLMediaLibrary_HoloLens.Build.cs(7,29): error CS0115: 'HLMediaLibrary_HoloLens.Platform': no suitable method found to override
D:\dillonja_unreal\Engine\Platforms\Hololens\Source\ThirdParty\HLMediaLibrary\HLMediaLibrary_HoloLens.Build.cs(8,27): error CS0115: 'HLMediaLibrary_HoloLens.bSupportedPlatform': no suitable method found to override
D:\dillonja_unreal\Engine\Platforms\Hololens\Source\ThirdParty\HLMediaLibrary\HLMediaLibrary_HoloLens.Build.cs(10,64): error CS1729: 'HLMediaLibrary' does not contain a constructor that takes 1 arguments
D:\dillonja_unreal\Engine\Platforms\Hololens\Source\ThirdParty\libcurl\libcurl_HoloLens.Build.cs(7,57): error CS1729: 'libcurl' does not contain a constructor that takes 1 arguments
D:\dillonja_unreal\Engine\Platforms\Hololens\Source\ThirdParty\libcurl\libcurl_HoloLens.Build.cs(13,4): error CS0103: The name 'PublicDefinitions' does not exist in the current context
D:\dillonja_unreal\Engine\Platforms\Hololens\Source\ThirdParty\BLAKE3\BLAKE3_HoloLens.Build.cs(9,56): error CS1729: 'BLAKE3' does not contain a constructor that takes 1 arguments
D:\dillonja_unreal\Engine\Platforms\Hololens\Source\ThirdParty\zlib\zlib_HoloLens.Build.cs(9,54): error CS1729: 'zlib' does not contain a constructor that takes 1 arguments
D:\dillonja_unreal\Engine\Platforms\Hololens\Source\ThirdParty\zlib\zlib_HoloLens.Build.cs(13,5): error CS0103: The name 'PublicAdditionalLibraries' does not exist in the current context
D:\dillonja_unreal\Engine\Platforms\Hololens\Source\ThirdParty\zlib\zlib_HoloLens.Build.cs(13,48): error CS0103: The name 'LibraryPath' does not exist in the current context
D:\dillonja_unreal\Engine\Platforms\Hololens\Source\ThirdParty\zlib\zlib_HoloLens.Build.cs(17,5): error CS0103: The name 'PublicAdditionalLibraries' does not exist in the current context
D:\dillonja_unreal\Engine\Platforms\Hololens\Source\ThirdParty\zlib\zlib_HoloLens.Build.cs(17,48): error CS0103: The name 'LibraryPath' does not exist in the current context
D:\dillonja_unreal\Engine\Platforms\Hololens\Source\ThirdParty\BLAKE3\BLAKE3_HoloLens.Build.cs(13,5): error CS0103: The name 'PublicAdditionalLibraries' does not exist in the current context
D:\dillonja_unreal\Engine\Platforms\Hololens\Source\ThirdParty\BLAKE3\BLAKE3_HoloLens.Build.cs(13,48): error CS0103: The name 'LibraryPath' does not exist in the current context
D:\dillonja_unreal\Engine\Platforms\Hololens\Source\ThirdParty\BLAKE3\BLAKE3_HoloLens.Build.cs(17,5): error CS0103: The name 'PublicAdditionalLibraries' does not exist in the current context
D:\dillonja_unreal\Engine\Platforms\Hololens\Source\ThirdParty\BLAKE3\BLAKE3_HoloLens.Build.cs(17,48): error CS0103: The name 'LibraryPath' does not exist in the current context
D:\dillonja_unreal\Engine\Platforms\Hololens\Source\ThirdParty\Vorbis\VorbisFile_HoloLens.Build.cs(9,60): error CS1729: 'VorbisFile' does not contain a constructor that takes 1 arguments
D:\dillonja_unreal\Engine\Platforms\Hololens\Source\ThirdParty\Vorbis\VorbisFile_HoloLens.Build.cs(17,57): error CS0103: The name 'VorbisFileLibPath' does not exist in the current context
D:\dillonja_unreal\Engine\Platforms\Hololens\Source\ThirdParty\Vorbis\VorbisFile_HoloLens.Build.cs(18,5): error CS0103: The name 'RuntimeDependencies' does not exist in the current context
D:\dillonja_unreal\Engine\Platforms\Hololens\Source\ThirdParty\Vorbis\VorbisFile_HoloLens.Build.cs(27,53): error CS0103: The name 'VorbisFileLibPath' does not exist in the current context
D:\dillonja_unreal\Engine\Platforms\Hololens\Source\ThirdParty\Vorbis\VorbisFile_HoloLens.Build.cs(28,5): error CS0103: The name 'RuntimeDependencies' does not exist in the current context
D:\dillonja_unreal\Engine\Platforms\Hololens\Source\ThirdParty\Vorbis\VorbisFile_HoloLens.Build.cs(35,4): error CS0103: The name 'PublicAdditionalLibraries' does not exist in the current context
D:\dillonja_unreal\Engine\Platforms\Hololens\Source\ThirdParty\Vorbis\VorbisFile_HoloLens.Build.cs(36,4): error CS0103: The name 'PublicDelayLoadDLLs' does not exist in the current context
D:\dillonja_unreal\Engine\Platforms\Hololens\Source\ThirdParty\libPNG\UElibPNG_HoloLens.Build.cs(9,58): error CS1729: 'UElibPNG' does not contain a constructor that takes 1 arguments
D:\dillonja_unreal\Engine\Platforms\Hololens\Source\ThirdParty\libPNG\UElibPNG_HoloLens.Build.cs(14,26): error CS0103: The name 'LibPNGPath' does not exist in the current context
D:\dillonja_unreal\Engine\Platforms\Hololens\Source\ThirdParty\libPNG\UElibPNG_HoloLens.Build.cs(29,4): error CS0103: The name 'PublicAdditionalLibraries' does not exist in the current context
D:\dillonja_unreal\Engine\Platforms\Hololens\Source\ThirdParty\Vorbis\Vorbis_HoloLens.Build.cs(9,56): error CS1729: 'Vorbis' does not contain a constructor that takes 1 arguments
D:\dillonja_unreal\Engine\Platforms\Hololens\Source\ThirdParty\Vorbis\Vorbis_HoloLens.Build.cs(17,57): error CS0103: The name 'VorbisLibPath' does not exist in the current context
D:\dillonja_unreal\Engine\Platforms\Hololens\Source\ThirdParty\Vorbis\Vorbis_HoloLens.Build.cs(18,5): error CS0103: The name 'RuntimeDependencies' does not exist in the current context
D:\dillonja_unreal\Engine\Platforms\Hololens\Source\ThirdParty\Vorbis\Vorbis_HoloLens.Build.cs(27,53): error CS0103: The name 'VorbisLibPath' does not exist in the current context
D:\dillonja_unreal\Engine\Platforms\Hololens\Source\ThirdParty\Vorbis\Vorbis_HoloLens.Build.cs(28,5): error CS0103: The name 'RuntimeDependencies' does not exist in the current context
D:\dillonja_unreal\Engine\Platforms\Hololens\Source\ThirdParty\Vorbis\Vorbis_HoloLens.Build.cs(35,4): error CS0103: The name 'PublicAdditionalLibraries' does not exist in the current context
D:\dillonja_unreal\Engine\Platforms\Hololens\Source\ThirdParty\Vorbis\Vorbis_HoloLens.Build.cs(36,4): error CS0103: The name 'PublicDelayLoadDLLs' does not exist in the current context
D:\dillonja_unreal\Engine\Platforms\Hololens\Source\ThirdParty\libOpus\libOpus_HoloLens.build.cs(7,57): error CS1729: 'libOpus' does not contain a constructor that takes 1 arguments
D:\dillonja_unreal\Engine\Platforms\Hololens\Source\ThirdParty\libOpus\libOpus_HoloLens.build.cs(9,25): error CS0103: The name 'OpusLibPath' does not exist in the current context
D:\dillonja_unreal\Engine\Platforms\Hololens\Source\ThirdParty\libOpus\libOpus_HoloLens.build.cs(25,4): error CS0103: The name 'PublicAdditionalLibraries' does not exist in the current context
D:\dillonja_unreal\Engine\Platforms\Hololens\Source\ThirdParty\libOpus\libOpus_HoloLens.build.cs(26,4): error CS0103: The name 'PublicAdditionalLibraries' does not exist in the current context
D:\dillonja_unreal\Engine\Platforms\Hololens\Source\ThirdParty\libOpus\libOpus_HoloLens.build.cs(27,4): error CS0103: The name 'PublicAdditionalLibraries' does not exist in the current context
D:\dillonja_unreal\Engine\Platforms\Hololens\Source\ThirdParty\libOpus\libOpus_HoloLens.build.cs(28,4): error CS0103: The name 'PublicAdditionalLibraries' does not exist in the current context
D:\dillonja_unreal\Engine\Platforms\Hololens\Source\ThirdParty\libOpus\libOpus_HoloLens.build.cs(29,4): error CS0103: The name 'PublicAdditionalLibraries' does not exist in the current context
Unhandled exception: System.NullReferenceException: Object reference not set to an instance of an object.
at EpicGames.Core.FileSystemReference.CombineStrings(DirectoryReference baseDirectory, String[] fragments) in D:\dillonja_unreal\Engine\Source\Programs\Shared\EpicGames.Core\FileSystemReference.cs:line 56
at UnrealBuildTool.ProjectFileGenerator.CreateRulesAssemblyProject(RulesAssembly RulesAssembly, DirectoryReference FSPathBase, ILogger Logger) in D:\dillonja_unreal\Engine\Source\Programs\UnrealBuildTool\ProjectFiles\ProjectFileGenerator.cs:line 604
at UnrealBuildTool.ProjectFileGenerator.GenerateProjectFiles(PlatformProjectGeneratorCollection PlatformProjectGenerators, String[] Arguments, ILogger Logger) in D:\dillonja_unreal\Engine\Source\Programs\UnrealBuildTool\ProjectFiles\ProjectFileGenerator.cs:line 0
at UnrealBuildTool.GenerateProjectFilesMode.Execute(CommandLineArguments Arguments, ILogger Logger) in D:\dillonja_unreal\Engine\Source\Programs\UnrealBuildTool\Modes\GenerateProjectFilesMode.cs:line 233
at UnrealBuildTool.UnrealBuildTool.Main(String[] ArgumentsArray) in D:\dillonja_unreal\Engine\Source\Programs\UnrealBuildTool\UnrealBuildTool.cs:line 648
GenerateProjectFiles ERROR: UnrealBuildTool was unable to generate project files.
Press any key to continue . . .
Godspeed developers