Can't code C# ".NET Sdk not found. The required version is '8.0.4'."

Godot Version

4.2.1

Question

I have done to download Sdk 8.0.204 and Sdk 6. How to fix this

Please edit your original post instead of closing and then opening a duplicate

Ok i’m so sorry

1 Like

error say : “8.0.4”
Did you try get it?
obraz

I try to download Sdk 8.0.4 but i got Sdk 8.0.204


image

what is in your *csproj

What does it mean in csproj? You mean this?

image

there *.csproj in your project.
what tool for C# you have ? Visual Studio Code?

Yes i use Visual Studio Code. I loaded this
image

i need to download more?

Try running dotnet --info in terminal to verify your .NET installation.

How to download SDK 8.0.4

The 8.0.204 is the latest one. Did you install that one ? That should include 8.0.4 runtime.

The versioning of SDK is slightly different from that of runtime.

obraz
that how can look inside:


there is stable Godot 4.2.2 now with new fixes

that’s look not good
obraz
uninstall all .NET , restart PC,
install latest SDK only,
(SDK .NET, .NET, ASP .NET Core, .NET for Windows, all will be installed with SDK)



not try run again dotnet --info
now you should have
obraz

image
OK i have to download 8.0.4 but i cant code C#


I just create script C# and i got error

There seem to be a PATH issue, since the x86 version of .NET gets picked up before the x64 one.

How to fix this.