Skip to content

Commit c631f75

Browse files
authored
Merge pull request #8227 from raulsntos/csharp-support-update
Update the state of C#/.NET support as of 4.2 beta 1
2 parents c9cafea + f8ed631 commit c631f75

File tree

4 files changed

+43
-20
lines changed

4 files changed

+43
-20
lines changed

about/list_of_features.rst

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -39,10 +39,10 @@ Godot aims to be as platform-independent as possible and can be
3939

4040
.. note::
4141

42-
Projects written in C# using Godot 4 currently cannot be exported to iOS
43-
and web platforms. To use C# on those platforms, consider Godot 3 instead.
44-
Android platform support is available as of Godot 4.2, but is experimental
45-
and :ref:`some limitations apply <doc_c_sharp_platforms>`.
42+
Projects written in C# using Godot 4 currently cannot be exported to the
43+
web platform. To use C# on that platform, consider Godot 3 instead.
44+
Android and iOS platform support is available as of Godot 4.2, but is
45+
experimental and :ref:`some limitations apply <doc_c_sharp_platforms>`.
4646

4747
Editor
4848
------
@@ -441,10 +441,11 @@ Scripting
441441
- Full support for the C# 10.0 syntax and features.
442442

443443
- Supports Windows, Linux, and macOS. As of 4.2 experimental support for Android
444-
is also available (requires a .NET 7.0 project).
444+
and iOS is also available (requires a .NET 7.0 project for Android and 8.0 for iOS).
445445

446446
- On the Android platform only some architectures are supported: ``arm64`` and ``x64``.
447-
- iOS and web platforms are currently unsupported. To use C# on those platforms,
447+
- On the iOS platform only some architectures are supported: ``arm64``.
448+
- The web platform is currently unsupported. To use C# on that platform,
448449
consider Godot 3 instead.
449450

450451
- Using an external editor is recommended to benefit from IDE functionality.

getting_started/step_by_step/scripting_languages.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -128,10 +128,10 @@ officially supported .NET option.
128128

129129
.. attention::
130130

131-
Projects written in C# using Godot 4 currently cannot be exported to iOS
132-
and web platforms. To use C# on those platforms, consider Godot 3 instead.
133-
Android platform support is available as of Godot 4.2, but is experimental
134-
and :ref:`some limitations apply <doc_c_sharp_platforms>`.
131+
Projects written in C# using Godot 4 currently cannot be exported to the web
132+
platform. To use C# on that platform, consider Godot 3 instead.
133+
Android and iOS platform support is available as of Godot 4.2, but is
134+
experimental and :ref:`some limitations apply <doc_c_sharp_platforms>`.
135135

136136
C++ via GDExtension
137137
~~~~~~~~~~~~~~~~~~~

tutorials/scripting/c_sharp/c_sharp_basics.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,10 @@ it is implemented with .NET 6.0.
1818

1919
.. attention::
2020

21-
Projects written in C# using Godot 4 currently cannot be exported to iOS
22-
and web platforms. To use C# on those platforms, consider Godot 3 instead.
23-
Android platform support is available as of Godot 4.2, but is experimental
24-
and :ref:`some limitations apply <doc_c_sharp_platforms>`.
21+
Projects written in C# using Godot 4 currently cannot be exported to the web
22+
platform. To use C# on that platforms, consider Godot 3 instead.
23+
Android and iOS platform support is available as of Godot 4.2, but is
24+
experimental and :ref:`some limitations apply <doc_c_sharp_platforms>`.
2525

2626
.. note::
2727

tutorials/scripting/c_sharp/index.rst

Lines changed: 28 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -42,13 +42,35 @@ C# platform support
4242
-------------------
4343

4444
As of Godot 4.2 projects written in C# support all desktop platforms (Windows, Linux,
45-
and macOS), as well as Android. Android support is currently experimental and has a few
46-
limitations.
45+
and macOS), as well as Android and iOS.
4746

48-
- Projects targeting Android need to be created using .NET 7.0 or higher. This requires
49-
modifying the `.csproj` file generated by Godot.
47+
Android support is currently experimental and has a few limitations.
48+
49+
- Projects targeting Android need to target .NET 7.0 or higher. This requires
50+
modifying the `.csproj` file generated by Godot for existing projects.
51+
The following property is added to new projects created with 4.2 and can be
52+
added to existing projects:
53+
54+
.. code-block:: xml
55+
56+
<TargetFramework Condition=" '$(GodotTargetPlatform)' == 'android' ">net7.0</TargetFramework>
5057
5158
- Only some Android architectures are supported: ``arm64`` and ``x64``.
5259

53-
Currently, projects written in C# cannot be exported to iOS and web platforms. To use C#
54-
on those platforms, consider Godot 3 instead.
60+
iOS support is currently experimental and has a few limitations.
61+
62+
- Projects targeting iOS need to target .NET 8.0 or higher. This requires
63+
modifying the `.csproj` file generated by Godot for existing projects.
64+
The following property is added to new projects created with 4.2 and can be
65+
added to existing projects:
66+
67+
.. code-block:: xml
68+
69+
<TargetFramework Condition=" '$(GodotTargetPlatform)' == 'ios' ">net8.0</TargetFramework>
70+
71+
- The official export templates for the iOS simulator only supports the ``x64`` architecture.
72+
73+
- Exporting to iOS can only be done from a MacOS device.
74+
75+
Currently, projects written in C# cannot be exported to the web platform. To use C#
76+
on that platform, consider Godot 3 instead.

0 commit comments

Comments
 (0)