Browse Source

Mention --no-deprecated in Compiling with .NET

Felix Bytow 11 months ago
parent
commit
d68f5ff0cd
1 changed files with 10 additions and 0 deletions
  1. 10 0
      contributing/development/compiling/compiling_with_dotnet.rst

+ 10 - 0
contributing/development/compiling/compiling_with_dotnet.rst

@@ -129,6 +129,16 @@ source and that conflicting versions of the package are removed from the NuGet
 cache. It's recommended to always use this option when building the C# solutions
 cache. It's recommended to always use this option when building the C# solutions
 during development to avoid mistakes.
 during development to avoid mistakes.
 
 
+Building without depending on deprecated features (NO_DEPRECATED)
+^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
+
+When building Godot without deprecated classes and functions, i.e. the ``deprecated=no``
+argument for scons, the managed libraries must also be built without dependencies to deprecated code.
+This is done by passing the ``--no-deprecated`` argument:
+
+::
+    ./modules/mono/build_scripts/build_assemblies.py --godot-output-dir ./bin --push-nupkgs-local <my_local_source> --no-deprecated
+
 Double Precision Support (REAL_T_IS_DOUBLE)
 Double Precision Support (REAL_T_IS_DOUBLE)
 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^