This site is currently in read-only mode during migration to a new platform.
You cannot post questions, answers or comments, as they would be lost during the migration otherwise.
+1 vote

The installation instructions for the C# version of Godot are confusing. Which .NET / Mono SDK needs to be installed for Godot 3.4 and 3.5, on Windows, in order to compile and run a C# Godot project?

https://godotengine.org/download/windows
says:
"Requirements: For the Mono version: .NET SDK or the Mono SDK"

https://docs.godotengine.org/en/stable/tutorials/scripting/c_sharp/c_sharp_basics.html
says:
"Install the latest stable version of the .NET SDK, previously known as the .NET Core SDK."

https://github.com/godotengine/godot/issues/36818#issuecomment-595317637
says:
"You need .NET Framework 4.7 exactly, not the latest version."

https://github.com/godotengine/godot/issues/49139#issuecomment-857698220
says:
"Install .NET SDK 5.0 from https://dotnet.microsoft.com/download"

.NET 5.0 is an "Out of support version".

So, which is it? Will it work with .NET 6.0? (I can't test it myself. I need to give correct installation instructions to others.)

Godot version 3.4.4
in Engine by (19 points)

1 Answer

0 votes

Answering my own question: It seems to work with .NET 6.0.

by (19 points)

Does it? I can't get the streamreader to work which throws some weird error.
Unhandled Exception:
System.TypeLoadException: Could not resolve type with token 0100000d from typere
f (expected class 'System.IO.StreamReader' in assembly 'System.Runtime, Version=
6.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a')

The streamreader works fine if I just use netstandard 2.1 or netcore 3.1. With that I mean I use those as my target framework:
net6.0

Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read Frequently asked questions and How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to [email protected] with your username.