Godot can't detect dotnet SDK

Godot Version

Godot v4.6.2 Mono

Question

Can’t detect DotNet SDK.

dotnet --list-sdks
8.0.415 [C:\Program Files\dotnet\sdk]
10.0.202 [C:\Program Files\dotnet\sdk]

but every time i open godot it can’t detect and gives error.

Maybe you can give us error too?

1 Like

It’s really difficult to tell with such little information.

How did you install dotnet? Does the same thing happen if you only have dotnet 10 installed? (You can have godot run with dotnet 10 as well, it’s backwards compatible, you don’t need to install 2 SDKs)

You should have two subfolders, one for each dotnet install, they just can’t be at the same path. Look for such versioned folders underneath dotnet\

Cheers !

Unable to Ioad .NET runtime, no compatible version was found.
Attempting to create/edit a projed Will lead to a crash,
Please install the ,NET SDK 8.0 or [ater fram https://get.dot.net and restart Godot.

I get this popup every time i open it. And if i use the console version i get

ERROR: hostfxr_initialize_for_runtime_config failed with code: -2147450733
   at: (modules/mono/mono_gd/gd_mono.cpp:367)
ERROR: .NET: Failed to load compatible .NET runtime
   at: (modules/mono/mono_gd/gd_mono.cpp:444)
ERROR: Parameter "godot_plugins_initialize" is null.
   at: initialize (modules/mono/mono_gd/gd_mono.cpp:653)

I already had dotnet 8.0 installed with visual studio, but when godot didnt work i installed 10.0 from the website it recommends. The SDKs are installed in “C:\Program Files\dotnet\sdk\8.0.415 and \10.0.202”

Aperantly windows security deleted some files from GodotSharp, reinstalling fixed it

1 Like