Closed Foxchandaisuki closed 6 months ago
In that article I wanted to let users know that using NativeAOT was possible, but it's an advanced use case that most users shouldn't use at this time because it has some caveats.
As mentioned in the article, NativeAOT requires trimming and that is incompatible with some of the reflection APIs we use in the Godot libraries. This means that you have to explicitly disable trimming by rooting the assemblies and that's not something we want to recommend.
The goal is to eventually make the Godot libraries fully NativeAOT compatible so disabling trimming is no longer necessary. Until then I don't think it should be documented, advanced users should be able to figure out how to make it work and don't need the documentation or can just rely on Microsoft's documentation.
Closing this per raulsntos' comment.
Your Godot version: 4.2
Issue description: It is necessary to add the text from the Desktop paragraph and other sections of this article to the document's page to inform users that they can AOT compile C# code to native code and how to do so.
The items listed below are the exact content that needs to be included.
URL to the documentation page (if already existing): https://docs.godotengine.org/en/stable/tutorials/scripting/c_sharp/index.html#c-platform-support