Unreal Engine 5 installation failing at GenerateProjectFiles.bat

Hi, I downloaded the sources for UE5 from github and successfully ran the setup.bat. When I run the GenerateProjectFiles.bat, I get the below errors. I already have VS 2019 and 2022 installed. What am I missing?

Thanks

D:\dev\Unreal\UnrealEngine-5.0.2>GenerateProjectFiles.bat
Setting up Unreal Engine 5 project files…
Using bundled DotNet SDK
Building UnrealBuildTool…
D:\dev\Unreal\UnrealEngine-5.0.2\Engine\Source\Programs\UnrealBuildTool\UnrealBuildTool.csproj : error NU1101: Unable to find package Microsoft.CodeAnalysis.CSharp. No packages exist with this id in source(s): Microsoft Visual Studio Offline Packages, Nuget
D:\dev\Unreal\UnrealEngine-5.0.2\Engine\Source\Programs\Shared\EpicGames.Core\EpicGames.Core.csproj : error NU1101: Unable to find package JetBrains.Annotations. No packages exist with this id in source(s): Microsoft Visual Studio Offline Packages, Nuget [D:\dev\Unreal\UnrealEngine-5.0.2\Engine\Source\Programs\UnrealBuildTool\UnrealBuildTool.csproj]
D:\dev\Unreal\UnrealEngine-5.0.2\Engine\Source\Programs\Shared\EpicGames.Build\EpicGames.Build.csproj : error NU1102: Unable to find package Microsoft.CSharp with version (>= 4.7.0) [D:\dev\Unreal\UnrealEngine-5.0.2\Engine\Source\Programs\UnrealBuildTool\UnrealBuildTool.csproj]
D:\dev\Unreal\UnrealEngine-5.0.2\Engine\Source\Programs\Shared\EpicGames.Build\EpicGames.Build.csproj : error NU1102: - Found 2 version(s) in Microsoft Visual Studio Offline Packages [ Nearest version: 4.0.1 ] [D:\dev\Unreal\UnrealEngine-5.0.2\Engine\Source\Programs\UnrealBuildTool\UnrealBuildTool.csproj]
D:\dev\Unreal\UnrealEngine-5.0.2\Engine\Source\Programs\Shared\EpicGames.Build\EpicGames.Build.csproj : error NU1102: - Found 0 version(s) in Nuget [D:\dev\Unreal\UnrealEngine-5.0.2\Engine\Source\Programs\UnrealBuildTool\UnrealBuildTool.csproj]
D:\dev\Unreal\UnrealEngine-5.0.2\Engine\Source\Programs\UnrealBuildTool\UnrealBuildTool.csproj : error NU1102: Unable to find package Microsoft.Win32.Registry with version (>= 4.7.0)
D:\dev\Unreal\UnrealEngine-5.0.2\Engine\Source\Programs\UnrealBuildTool\UnrealBuildTool.csproj : error NU1102: - Found 1 version(s) in Microsoft Visual Studio Offline Packages [ Nearest version: 4.0.0 ]
D:\dev\Unreal\UnrealEngine-5.0.2\Engine\Source\Programs\UnrealBuildTool\UnrealBuildTool.csproj : error NU1102: - Found 0 version(s) in Nuget
D:\dev\Unreal\UnrealEngine-5.0.2\Engine\Source\Programs\Shared\EpicGames.Core\EpicGames.Core.csproj : error NU1101: Unable to find package Microsoft.Extensions.Logging. No packages exist with this id in source(s): Microsoft Visual Studio Offline Packages, Nuget [D:\dev\Unreal\UnrealEngine-5.0.2\Engine\Source\Programs\UnrealBuildTool\UnrealBuildTool.csproj]
D:\dev\Unreal\UnrealEngine-5.0.2\Engine\Source\Programs\UnrealBuildTool\UnrealBuildTool.csproj : error NU1101: Unable to find package OpenTracing. No packages exist with this id in source(s): Microsoft Visual Studio Offline Packages, Nuget
D:\dev\Unreal\UnrealEngine-5.0.2\Engine\Source\Programs\UnrealBuildTool\UnrealBuildTool.csproj : error NU1101: Unable to find package System.Management. No packages exist with this id in source(s): Microsoft Visual Studio Offline Packages, Nuget
D:\dev\Unreal\UnrealEngine-5.0.2\Engine\Source\Programs\Shared\EpicGames.Core\EpicGames.Core.csproj : error NU1101: Unable to find package Microsoft.Extensions.Logging.Abstractions. No packages exist with this id in source(s): Microsoft Visual Studio Offline Packages, Nuget [D:\dev\Unreal\UnrealEngine-5.0.2\Engine\Source\Programs\UnrealBuildTool\UnrealBuildTool.csproj]
D:\dev\Unreal\UnrealEngine-5.0.2\Engine\Source\Programs\UnrealBuildTool\UnrealBuildTool.csproj : error NU1101: Unable to find package System.ServiceProcess.ServiceController. No packages exist with this id in source(s): Microsoft Visual Studio Offline Packages, Nuget
D:\dev\Unreal\UnrealEngine-5.0.2\Engine\Source\Programs\Shared\EpicGames.Build\EpicGames.Build.csproj : error NU1102: Unable to find package Microsoft.Win32.Registry with version (>= 4.7.0) [D:\dev\Unreal\UnrealEngine-5.0.2\Engine\Source\Programs\UnrealBuildTool\UnrealBuildTool.csproj]
D:\dev\Unreal\UnrealEngine-5.0.2\Engine\Source\Programs\Shared\EpicGames.Build\EpicGames.Build.csproj : error NU1102: - Found 1 version(s) in Microsoft Visual Studio Offline Packages [ Nearest version: 4.0.0 ] [D:\dev\Unreal\UnrealEngine-5.0.2\Engine\Source\Programs\UnrealBuildTool\UnrealBuildTool.csproj]
D:\dev\Unreal\UnrealEngine-5.0.2\Engine\Source\Programs\Shared\EpicGames.Build\EpicGames.Build.csproj : error NU1102: - Found 0 version(s) in Nuget [D:\dev\Unreal\UnrealEngine-5.0.2\Engine\Source\Programs\UnrealBuildTool\UnrealBuildTool.csproj]
D:\dev\Unreal\UnrealEngine-5.0.2\Engine\Source\Programs\Shared\EpicGames.Core\EpicGames.Core.csproj : error NU1101: Unable to find package OpenTracing. No packages exist with this id in source(s): Microsoft Visual Studio Offline Packages, Nuget [D:\dev\Unreal\UnrealEngine-5.0.2\Engine\Source\Programs\UnrealBuildTool\UnrealBuildTool.csproj]
D:\dev\Unreal\UnrealEngine-5.0.2\Engine\Source\Programs\UnrealBuildTool\UnrealBuildTool.csproj : error NU1101: Unable to find package System.Text.Encoding.CodePages. No packages exist with this id in source(s): Microsoft Visual Studio Offline Packages, Nuget
D:\dev\Unreal\UnrealEngine-5.0.2\Engine\Source\Programs\UnrealBuildTool\UnrealBuildTool.csproj : error NU1101: Unable to find package System.Reflection.MetadataLoadContext. No packages exist with this id in source(s): Microsoft Visual Studio Offline Packages, Nuget
D:\dev\Unreal\UnrealEngine-5.0.2\Engine\Source\Programs\Shared\EpicGames.Core\EpicGames.Core.csproj : error NU1101: Unable to find package System.Memory. No packages exist with this id in source(s): Microsoft Visual Studio Offline Packages, Nuget [D:\dev\Unreal\UnrealEngine-5.0.2\Engine\Source\Programs\UnrealBuildTool\UnrealBuildTool.csproj]
D:\dev\Unreal\UnrealEngine-5.0.2\Engine\Source\Programs\UnrealBuildTool\UnrealBuildTool.csproj : error NU1101: Unable to find package System.Windows.Extensions. No packages exist with this id in source(s): Microsoft Visual Studio Offline Packages, Nuget
D:\dev\Unreal\UnrealEngine-5.0.2\Engine\Source\Programs\UnrealBuildTool\UnrealBuildTool.csproj : error NU1102: Unable to find package Microsoft.CSharp with version (>= 4.7.0)
D:\dev\Unreal\UnrealEngine-5.0.2\Engine\Source\Programs\UnrealBuildTool\UnrealBuildTool.csproj : error NU1102: - Found 2 version(s) in Microsoft Visual Studio Offline Packages [ Nearest version: 4.0.1 ]
D:\dev\Unreal\UnrealEngine-5.0.2\Engine\Source\Programs\UnrealBuildTool\UnrealBuildTool.csproj : error NU1102: - Found 0 version(s) in Nuget
D:\dev\Unreal\UnrealEngine-5.0.2\Engine\Source\Programs\Shared\EpicGames.Build\EpicGames.Build.csproj : error NU1101: Unable to find package System.Data.DataSetExtensions. No packages exist with this id in source(s): Microsoft Visual Studio Offline Packages, Nuget [D:\dev\Unreal\UnrealEngine-5.0.2\Engine\Source\Programs\UnrealBuildTool\UnrealBuildTool.csproj]
D:\dev\Unreal\UnrealEngine-5.0.2\Engine\Source\Programs\UnrealBuildTool\UnrealBuildTool.csproj : error NU1101: Unable to find package System.Data.DataSetExtensions. No packages exist with this id in source(s): Microsoft Visual Studio Offline Packages, Nuget
D:\dev\Unreal\UnrealEngine-5.0.2\Engine\Source\Programs\UnrealBuildTool\UnrealBuildTool.csproj : error NU1101: Unable to find package JetBrains.Annotations. No packages exist with this id in source(s): Microsoft Visual Studio Offline Packages, Nuget
D:\dev\Unreal\UnrealEngine-5.0.2\Engine\Source\Programs\UnrealBuildTool\UnrealBuildTool.csproj : error NU1101: Unable to find package Microsoft.Extensions.Logging. No packages exist with this id in source(s): Microsoft Visual Studio Offline Packages, Nuget
D:\dev\Unreal\UnrealEngine-5.0.2\Engine\Source\Programs\UnrealBuildTool\UnrealBuildTool.csproj : error NU1101: Unable to find package Microsoft.Extensions.Logging.Abstractions. No packages exist with this id in source(s): Microsoft Visual Studio Offline Packages, Nuget
D:\dev\Unreal\UnrealEngine-5.0.2\Engine\Source\Programs\Shared\EpicGames.Build\EpicGames.Build.csproj : error NU1101: Unable to find package JetBrains.Annotations. No packages exist with this id in source(s): Microsoft Visual Studio Offline Packages, Nuget [D:\dev\Unreal\UnrealEngine-5.0.2\Engine\Source\Programs\UnrealBuildTool\UnrealBuildTool.csproj]
D:\dev\Unreal\UnrealEngine-5.0.2\Engine\Source\Programs\UnrealBuildTool\UnrealBuildTool.csproj : error NU1101: Unable to find package System.Memory. No packages exist with this id in source(s): Microsoft Visual Studio Offline Packages, Nuget
D:\dev\Unreal\UnrealEngine-5.0.2\Engine\Source\Programs\Shared\EpicGames.Build\EpicGames.Build.csproj : error NU1101: Unable to find package Microsoft.Extensions.Logging. No packages exist with this id in source(s): Microsoft Visual Studio Offline Packages, Nuget [D:\dev\Unreal\UnrealEngine-5.0.2\Engine\Source\Programs\UnrealBuildTool\UnrealBuildTool.csproj]
D:\dev\Unreal\UnrealEngine-5.0.2\Engine\Source\Programs\Shared\EpicGames.Build\EpicGames.Build.csproj : error NU1101: Unable to find package Microsoft.Extensions.Logging.Abstractions. No packages exist with this id in source(s): Microsoft Visual Studio Offline Packages, Nuget [D:\dev\Unreal\UnrealEngine-5.0.2\Engine\Source\Programs\UnrealBuildTool\UnrealBuildTool.csproj]
D:\dev\Unreal\UnrealEngine-5.0.2\Engine\Source\Programs\Shared\EpicGames.Build\EpicGames.Build.csproj : error NU1101: Unable to find package OpenTracing. No packages exist with this id in source(s): Microsoft Visual Studio Offline Packages, Nuget [D:\dev\Unreal\UnrealEngine-5.0.2\Engine\Source\Programs\UnrealBuildTool\UnrealBuildTool.csproj]
D:\dev\Unreal\UnrealEngine-5.0.2\Engine\Source\Programs\Shared\EpicGames.Build\EpicGames.Build.csproj : error NU1101: Unable to find package System.Memory. No packages exist with this id in source(s): Microsoft Visual Studio Offline Packages, Nuget [D:\dev\Unreal\UnrealEngine-5.0.2\Engine\Source\Programs\UnrealBuildTool\UnrealBuildTool.csproj]

GenerateProjectFiles ERROR: UnrealBuildTool failed to compile.

1 Like

To install the correct components for UE5 development, make sure the Game Development with C++ workload is checked. Under the Installation Details section on the right, also choose the following components:

  • C++ profiling tools
  • C++ AddressSanitizer (optional)
  • Windows 10 SDK (10.0.18362 or newer)
  • Unreal Engine Installer

Thank you for your suggestion. The first 3 components were already activated so I just added Unreal Engine Installer. Unfortunately this did not fix the issue – I still get the same errors. As a test I downloaded the sources for UE 4.27 and I did not have any problems (GenerateProjectFiles.bat ran without any errors).

Hmmm… I think the only thing you could try is updating vs studio and making sure the additional options are installed.
You may have to also pay attention to when the popup appears that allows changes to your pc. If you don’t hit the allow button in time, it sometimes times out.

For anyone finding this thread after searching the error:
I managed to fix this problem by adding https:\www.nuget.org\api\v2 to the nuget package sources in Visual Studio (Tools > Options > Nuget Package Manager > Package Sources)

My installation had only one package source configured: “Microsoft Visual Studio Offline Packages”, pointing to a folder on the local disk and the required Packages are not in there. Updating VS 2019 to latest did not fix this and the above mentioned components were definitely installed. I do not know if this is to be expected but adding the online package source sorted it for me.

8 Likes

For anyone for whom the above link is not working try this one https:\api.nuget.org\v3\index.json . Worked for me for UE5.1 with VS2019

3 Likes

This is a fix for me, however the url needed forward slashes: https://www.nuget.org/api/v2

3 Likes