I've downloaded and ran the Godot 4.1.1 with C# support Editor for Windows and received this error

despite having the .NET SDK 6.0.414 win x64 installed in my computer.

I've deleted all other versions of the .NET SDK from my computer and performed a fresh installation of .NET SDK 6.0.414. I've even compiled the Godot with C# support step by step using the runtime documentation. All avenues still produced the error.

For testing purposes, I've downloaded the official Godot engine with C# Support and did not encounter this error. I realize that this is a newly released build and was wondering if this is a known error.

Related Discussions
...

I was able to get this to work by installing the standard C# version of Godot from their website and transferring over the contents in the "Godot Sharp" file as that folder was empty from the download.

However, I am not able to actually write any code in C#, and I am wondering if these issues are related.

Folder contents I moved/copied from the version I downloaded on the Godot Website

Mario I followed IceSparkStudio's hint and was able to solve the error also. Like IceSparkStudio mentioned, the "GodotSharp" folder from the Spine-Godot zip is empty.

The files NuGet files:

  • GodotSharpEditor.4.1.0.snupkg
  • Godot.NET.Sdk.4.1.0.nupkg
  • Godot.SourceGenerators.4.1.0.nupkg
  • GodotSharp.4.1.0.nupkg
  • GodotSharp.4.1.0.snupkg
  • GodotSharpEditor.4.1.0.nupkg

Have to be in "GodotSharp\Tools\nupkgs" folder from the Spine-Godot binary root folder.
The other folder "GodotSharp\Api" found from the official Godot #C binary is also required. Without that folder, I got the .NET runtime error message again.

If you use the files from the official Godot distribution, you won't be able to use the Spine API. I'll fix this tomorrow when I'm in the office. Sorry!

Nate 添加 Godot 标签

Mario While building, do you use multiple CPU threads in SCons?

@SilverStraw yes, and its fine on any normal machine. E.g. on my MBP a full release build takes about 2 minutes. But the GitHub runners only have 1 or 2 virtual cores and who knows how the file system is virtualized. It's ... not great.

18 天 后

Would you please put the new C# build on the main godotengine.org web page for download?
I do downloaded from that page the newest versiono 4.1.2 & I already had 4.1.1 & 4.0 & they all gave the same .NET SDK 6.0 error & I couldn't even open a project at all without it crashing.