[dotnet] Godot4: supporting the transition from mono to dotnet6 #4416
GeorgeS2019
started this conversation in
Scripting
Replies: 1 comment
-
🔵 Godot4 Mono projects [June2022: Active]open-source-shooter https://git.join-striked.com/striked-gaming/open-source-shooter |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
We the Godot .NET community, are still gathering feedback, what is written here is still work in progress
🔵 Background and the latest Godot4 mono custom build
Reference from the Godot proposal: From embedding Mono to Godot as a library and the future; in a more narrow sense this comment
I just recently confirmed that it is possible to take the recent Godot4 master branch and compile the mono version using MSVC
This Godot 4.0.alpha mono custom built is based on the commit 01efb9384
Mono JIT compiler version 6.13.0 (Visual Studio built mono)
Regression: 12.05.2022 see
Generate vsproj VS Projects: Don't include mono_reg without its module
🔵 Motivation
The Godot4 dotnet6 branch is making good progress and a few of us have been testing compiling in linux (different distro) and windows (e.g. llvm-mingw (WSL2 ubuntu and windows) and msvc) for gathering feedback for the godot team.Creating this discussion to gather the thoughts on how best to support the transition from Godot4 mono to Godot4 dotnet.
Here are some of the tentative links useful for this discussion
Recent dotnet6 commit
Godot4 dotnet6 Windows MSVC build
21.03.2022
Godot4 dotnet6 Windows compiled using MSVC
Reference:
It is possible to compile Godot4 dotnet6 branch using MSVC and get to a navigable Godot Editor. However, the moment one attached a c# script, the Godot editor crashes. This is just a few of the observations that seem to be different from the Godot4 dotnet6 compiled using e.g. Ubuntu.
Here are the steps:
Step 1: fixed by this PR: Surround #warning with #ifndef _MSC_VER
Step 2: There are different views and discussions e.g. by @glihm on this step
Step 3: Same as compiling Godot3/4 mono
scons p=windows tools=yes module_mono_enabled=yes -j 12
Step 4: Almost the same as compiling Godot3/4 mono except an additional step 4a: copying "nethost.dll"
bin/godot.windows.tools.64.mono --generate-mono-glue modules/mono/glue
Step 5:
python modules/mono/build_scripts/build_assemblies.py --godot-output-dir=bin --godot-target=release_debug
Step 6:
dotnet nuget add source [godot directory]/bin/GodotSharp/Tools/nupkgs -n GodotSharp
Step 7:
__sc__
bin/godot.windows.tools.64.mono --verbose
31.03.2022
Godot4 dotnet6 Linux build is updated
20.04.2022
Next steps for the Godot4 dotnet6 Windows build using MSVC
21.04.2022
https://github.com/lewiji/godot/tree/dotnet6
🔵 Interesting references
Is Making Advanced GUI Applications with Godot the Future?
Will Godot4 dotnet6 NativeAOT with advanced GUI be the future?
Beta Was this translation helpful? Give feedback.
All reactions