Building Unreal from source and using Setup.bat on UE 5.5

Error when starting out Setup.bat to download additional Engine dependencies to open project.

I have .NET 8.0 installed, pretty much everything up to date, can’t figure out why I get this error when I have everything required.

Checking dependencies...
Unhandled exception. System.IO.FileNotFoundException: Could not load file or assembly 'System.Security.Cryptography, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'. The system cannot find the file specified.
File name: 'System.Security.Cryptography, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'
   at GitDependencies.Program.ComputeHashForFile(String FileName)
   at GitDependencies.Program.UpdateWorkingTree(Boolean bDryRun, String RootPath, HashSet`1 ExcludeFolders, Int32 NumThreads, Double HttpTimeoutMultiplier, Int32 MaxRetries, Uri Proxy, OverwriteMode Overwrite, String CachePath, Single CacheSizeMultiplier, Int32 CacheDays)
   at GitDependencies.Program.Main(String[] Args)

Thanks for any help and input to that!

1 Like

An environment variable %DOTNET_ROOT% is required to set to the correct path like C:\Program Files\dotnet

Tried adding this, but I have the same error. @mr.kubstoff Did you solve this?

Solved this by deleting the Engine\Binaries\DotNET folder of my project and copy the official one from Epic’s repo. Running again the Setup.bat after this worked without any error