Updated Visual Studio 2022 and since then I can’t build UE projects anymore. Any idea what could be going on?
Running E:/Unreal/UE_5.2/Engine/Build/BatchFiles/Build.bat -projectfiles -project="F:/Unreal/MyProject/MyProject.uproject" -game -rocket -progress
Using bundled DotNet SDK version: 6.0.302
Running UnrealBuildTool: dotnet "..\..\Engine\Binaries\DotNET\UnrealBuildTool\UnrealBuildTool.dll" -projectfiles -project="F:/Unreal/MyProject/MyProject.uproject" -game -rocket -progress
Log file: C:\Users\sasch\AppData\Local\UnrealBuildTool\Log_GPF.txt
Generating VisualStudio project files:
Discovering modules, targets and source code for project...
Unable to enumerate Visual Studio installations
No Visual C++ installation was found. Please download and install Visual Studio 2022 or 2019 with C++ components.
Visual Studio 2022 x64 must be installed in order to build this target.
Log_GPF.txt:
Log started at 06/14/2023 14:31:45 (2023-06-14T06:31:45Z)
Adding event matcher: CompileEventMatcher
Adding event matcher: LinkEventMatcher
Adding event matcher: MicrosoftEventMatcher
Adding event matcher: XoreaxEventMatcher
No config file at F:\__HOME__\OneDrive\Documents\Unreal Engine\UnrealBuildTool\BuildConfiguration.xml
Configuration will be read from:
C:\Users\sasch\AppData\Roaming\Unreal Engine\UnrealBuildTool\BuildConfiguration.xml
Registering build platform: UnrealBuildTool.AndroidPlatformFactory
Registering build platform: UnrealBuildTool.IOSPlatformFactory
Registering build platform: UnrealBuildTool.LinuxPlatformFactory
Registering build platform: UnrealBuildTool.MacPlatformFactory
Registering build platform: UnrealBuildTool.TVOSPlatformFactory
Registering build platform: UnrealBuildTool.WindowsPlatformFactory
Found Windows 8.1 SDK at C:\Program Files (x86)\Windows Kits\8.1
Found Windows 10 SDK root at C:\Program Files (x86)\Windows Kits\10 (1)
Found Windows 10 SDK root at C:\Program Files (x86)\Windows Kits\10 (2)
Found Universal CRT version 10.0.10150.0 at C:\Program Files (x86)\Windows Kits\10
Found Universal CRT version 10.0.10240.0 at C:\Program Files (x86)\Windows Kits\10
Found Windows 10 SDK version 10.0.20348.0 at C:\Program Files (x86)\Windows Kits\10
Found Universal CRT version 10.0.20348.0 at C:\Program Files (x86)\Windows Kits\10
Found Windows 10 SDK version 10.0.22000.0 at C:\Program Files (x86)\Windows Kits\10
Found Universal CRT version 10.0.22000.0 at C:\Program Files (x86)\Windows Kits\10
Found Windows 10 SDK version 10.0.22621.0 at C:\Program Files (x86)\Windows Kits\10
Found Universal CRT version 10.0.22621.0 at C:\Program Files (x86)\Windows Kits\10
Win64 Installed SDK(s): MinVersion_Sdk=10.0.00000.0, MaxVersion_Sdk=10.9.99999.0, CurrentVersion_Sdk=10.0.22621.0, Version_AutoSdk=10.0.18362.0, CurrentVersion_AutoSdk=
Registering build platform: Win64 - buildable: True
Registering build platform: UnrealBuildTool.HoloLensPlatformFactory
Log file: C:\Users\sasch\AppData\Local\UnrealBuildTool\Log_GPF.txt
Deleting old log file: C:\Users\sasch\AppData\Local\UnrealBuildTool\Log_GPF-backup-2022.05.10-08.47.40.txt
Resolved project argument F:/Unreal/MyProject/MyProject.uproject to F:\Unreal\MyProject\MyProject.uproject
Registering project generator UnrealBuildTool.AndroidProjectGenerator for Android
Skipping project file generator registration for Android due to no valid BuildPlatform.
Registering project generator UnrealBuildTool.IOSProjectGenerator for IOS
Skipping project file generator registration for IOS due to no valid BuildPlatform.
Registering project generator UnrealBuildTool.LinuxProjectGenerator for Linux
Skipping project file generator registration for Linux due to no valid BuildPlatform.
Registering project generator UnrealBuildTool.LinuxProjectGenerator for LinuxArm64
Skipping project file generator registration for LinuxArm64 due to no valid BuildPlatform.
Registering project generator UnrealBuildTool.MacProjectGenerator for Mac
Skipping project file generator registration for Mac due to no valid BuildPlatform.
Registering project generator UnrealBuildTool.TVOSProjectGenerator for TVOS
Skipping project file generator registration for TVOS due to no valid BuildPlatform.
Registering project generator UnrealBuildTool.WindowsProjectGenerator for Win64
Registering project generator UnrealBuildTool.HoloLensProjectGenerator for HoloLens
Skipping project file generator registration for HoloLens due to no valid BuildPlatform.
--- SDK INFO START ---
--- SDK INFO END ---
Generating VisualStudio project files:
Discovering modules, targets and source code for project...
Unable to enumerate Visual Studio installations
System.NullReferenceException: Object reference not set to an instance of an object.
at UnrealBuildTool.MicrosoftPlatformSDK.FindVisualStudioInstallations(ILogger Logger) in D:\build\++UE5\Sync\Engine\Saved\CsTools\Engine\Source\Programs\UnrealBuildTool\Platform\Windows\MicrosoftPlatformSDK.cs:line 822
Detected supported platforms: Win64
Skipping E:\Unreal\UE_5.2\Engine\Intermediate\Build\BuildRules\UE5Rules.dll: File is installed
Skipping E:\Unreal\UE_5.2\Engine\Intermediate\Build\BuildRules\UE5ProgramRules.dll: File is installed
No Visual C++ installation was found. Please download and install Visual Studio 2022 or 2019 with C++ components.
Visual Studio 2022 x64 must be installed in order to build this target.
BuildException: Visual Studio 2022 x64 must be installed in order to build this target.
at UnrealBuildTool.VCEnvironmentParameters..ctor(WindowsCompiler Compiler, WindowsCompiler ToolChain, UnrealTargetPlatform Platform, UnrealArch Architecture, String CompilerVersion, String WindowsSdkVersion, String SuppliedSdkDirectoryForVersion, Boolean bUseCPPWinRT, Boolean bAllowClangLinker, ILogger Logger) in D:\build\++UE5\Sync\Engine\Saved\CsTools\Engine\Source\Programs\UnrealBuildTool\Platform\Windows\VCEnvironment.cs:line 469
at UnrealBuildTool.VCEnvironment.Create(WindowsCompiler Compiler, WindowsCompiler ToolChain, UnrealTargetPlatform Platform, UnrealArch Architecture, String CompilerVersion, String WindowsSdkVersion, String SuppliedSdkDirectoryForVersion, Boolean bUseCPPWinRT, Boolean bAllowClangLinker, ILogger Logger) in D:\build\++UE5\Sync\Engine\Saved\CsTools\Engine\Source\Programs\UnrealBuildTool\Platform\Windows\VCEnvironment.cs:line 387
at UnrealBuildTool.WindowsPlatform.CreateVCEnvironment(TargetRules Target) in D:\build\++UE5\Sync\Engine\Saved\CsTools\Engine\Source\Programs\UnrealBuildTool\Platform\Windows\UEBuildWindows.cs:line 941
at UnrealBuildTool.WindowsPlatform.ValidateTarget(TargetRules Target) in D:\build\++UE5\Sync\Engine\Saved\CsTools\Engine\Source\Programs\UnrealBuildTool\Platform\Windows\UEBuildWindows.cs:line 1033
at UnrealBuildTool.RulesAssembly.CreateTargetRulesInstance(String TypeName, TargetInfo TargetInfo, ILogger Logger, Boolean IsTestTarget, Boolean bSkipValidation) in D:\build\++UE5\Sync\Engine\Saved\CsTools\Engine\Source\Programs\UnrealBuildTool\System\RulesAssembly.cs:line 701
at UnrealBuildTool.RulesAssembly.CreateTargetRules(String TargetName, UnrealTargetPlatform Platform, UnrealTargetConfiguration Configuration, UnrealArchitectures Architectures, FileReference ProjectFile, CommandLineArguments Arguments, ILogger Logger, Boolean IsTestTarget, Boolean bSkipValidation) in D:\build\++UE5\Sync\Engine\Saved\CsTools\Engine\Source\Programs\UnrealBuildTool\System\RulesAssembly.cs:line 778
at UnrealBuildTool.RulesAssembly.CreateTargetRules(String TargetName, UnrealTargetPlatform Platform, UnrealTargetConfiguration Configuration, UnrealArchitectures Architectures, FileReference ProjectFile, CommandLineArguments Arguments, ILogger Logger, Boolean IsTestTarget, Boolean bSkipValidation) in D:\build\++UE5\Sync\Engine\Saved\CsTools\Engine\Source\Programs\UnrealBuildTool\System\RulesAssembly.cs:line 766
at UnrealBuildTool.ProjectFileGenerator.AddProjectsForAllTargets(PlatformProjectGeneratorCollection PlatformProjectGenerators, List`1 AllGames, List`1 AllTargetFiles, String[] Arguments, ProjectFile& EngineProject, List`1 GameProjects, Dictionary`2 ProjectFileToUProjectFile, Dictionary`2 ProgramProjects, Dictionary`2 RulesAssemblies, ILogger Logger) in D:\build\++UE5\Sync\Engine\Saved\CsTools\Engine\Source\Programs\UnrealBuildTool\ProjectFiles\ProjectFileGenerator.cs:line 2450
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 916
at UnrealBuildTool.GenerateProjectFilesMode.Execute(CommandLineArguments Arguments, ILogger Logger) in D:\build\++UE5\Sync\Engine\Saved\CsTools\Engine\Source\Programs\UnrealBuildTool\Modes\GenerateProjectFilesMode.cs:line 67
at UnrealBuildTool.UnrealBuildTool.Main(String[] ArgumentsArray) in D:\build\++UE5\Sync\Engine\Saved\CsTools\Engine\Source\Programs\UnrealBuildTool\UnrealBuildTool.cs:line 599
WriteFileIfChanged() wrote 0 changed files of 0 requested writes.
Timeline:
[ 0.000]
[ 0.000](+0.782) <unknown>
[ 0.782]