Which .NET / Mono SDK needs to be installed for Godot 3.4 and 3.5?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By KBS

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?

“Requirements: For the Mono version: .NET SDK or the Mono SDK”

“Install the latest stable version of the .NET SDK, previously known as the .NET Core SDK.”

“You need .NET Framework 4.7 exactly, not the latest version.”

“Install .NET SDK 5.0 from Download .NET (Linux, macOS, and Windows)

.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.)

:bust_in_silhouette: Reply From: KBS

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

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=, 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:

Nighteyes | 2022-10-21 14:45