I’m having Issues building UE5 from source (GenerateProjectFiles.bat):
Setting up Unreal Engine project files...
Using bundled DotNet SDK version: 6.0.302
Building UnrealBuildTool...
System.IO.FileNotFoundException: Could not load file or assembly 'netstandard, Version=2.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51'. The system cannot find the file specified.
File name: 'netstandard, Version=2.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51'
at Microsoft.DotNet.Cli.Program.ProcessArgs(String[] args, TimeSpan startupTime, ITelemetry telemetryClient)
at Microsoft.DotNet.Cli.Program.Main(String[] args)
GenerateProjectFiles ERROR: UnrealBuildTool failed to compile.
Press any key to continue . . .
It looks like the issue might be related to the .NET SDK not being installed or properly configured on your system. The error message indicates that it cannot find the assembly ‘netstandard’ version 2.0.0.0.
Here are some steps you can try to resolve this issue:
Make sure you have the correct version of the .NET SDK installed. UE5 requires .NET 6.0 SDK, which you can download from Microsoft’s website.
Check if the environment variables for .NET SDK are set up correctly. You can verify this by opening a command prompt and typing dotnet --version. If you see a version number, then the .NET SDK is correctly installed and configured.
If the .NET SDK is not correctly installed, try uninstalling and reinstalling it.
Check if there are any conflicting versions of the .NET SDK or runtime installed on your system. You can use the .NET Core CLI tool dotnet --list-sdks to see which versions are installed on your system.
If all else fails, you can try deleting the Intermediate and Saved folders in your UE5 project directory and then re-run GenerateProjectFiles.bat.
I hope this helps you resolve the issue. Let me know if you have any further questions!