Whenever I try to click “Platforms->Windows->‘MY_PC’S_NAME’->Update Device” in the UE5 Editor it says “Installing SDK failed” and I get the following Console Log output:
LogMonitoredProcess: Running Serialized UAT: [ cmd.exe /c ""C:/Program Files/Epic Games/UE_5.0/Engine/Build/BatchFiles/RunUAT.bat" -ScriptsForProject="C:/Users/edins/Documents/Unreal Projects/MyProject/MyProject.uproject" Turnkey -command=VerifySdk -UpdateIfNeeded -platform=Windows -Device=Windows@DESKTOP-B0FALN9 -EditorIO -EditorIOPort=51898 -noturnkeyvariables -utf8output -WaitForUATMutex" -nocompile ] UATHelper: Installing Sdk (Windows): Running AutomationTool... UATHelper: Installing Sdk (Windows): 'dotnet' is not recognized as an internal or external command, UATHelper: Installing Sdk (Windows): operable program or batch file. UATHelper: Installing Sdk (Windows): BUILD FAILED
What I don’t understand is why it doesn’t recognize ‘dotnet’ as a command. Epic says that UE5 has the dotnet binary comes with the UE5 install and exists locally in the “C:\Program Files\Epic Games\UE_5.0\Engine\Binaries\ThirdParty\DotNet\Windows” folder so that you don’t need to install DotNet yourself.
If I run the “GetDotnetPath.bat” file in “C:\Program Files\Epic Games\UE_5.0\Engine\Build\BatchFiles” it says that it is using the local “built-in” DotNet binary that comes with UE5 (meaning “all is well”) but I still get the error in the console.
I know I am not the only one with this issue but every solution to the problem that I’ve seen is to either install the DotNet runtime on your machine (globally) or to change the path of the “DOTNET_ROOT” environment variable. While first solution works, it is not a proper solution since you are meant to be able to use the dotnet binary that comes with the UE5 install (therefore I refuse to do it, since it it just a “dirty workaround”). I cannot do the second solution since I have no idea what the “DOTNET_ROOT” environment variable is or where I can find it. If I look in the environment variable list in Windows (https://www.computerhope.com/issues/pictures/win10-envirvariables.jpg) it is nowhere to be seen (???).
Can anyone clarify for me where I can find “DOTNET_ROOT” and how I can modify it or see it’s current value?
I also tried adding the dotnet binary location (C:\Program Files\Epic Games\UE_5.0\Engine\Binaries\ThirdParty\DotNet\Windows) to my global environment path variable in Windows but it did absolutely nothing. Wtf?
Does anyone here have a proper solution to this problem? I feel like I am making it harder than it’s supposed to be…