Files
godot-docs-l10n/sphinx/templates/engine_details/development/compiling/compiling_with_dotnet.pot
2025-12-19 15:00:42 +01:00

213 lines
12 KiB
Plaintext

# SOME DESCRIPTIVE TITLE.
# Copyright (C) 2014-present Juan Linietsky, Ariel Manzur and the Godot community (CC BY 3.0)
# This file is distributed under the same license as the Godot Engine package.
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
#
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: Godot Engine latest\n"
"Report-Msgid-Bugs-To: \n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
#: ../../docs/engine_details/development/compiling/compiling_with_dotnet.rst:4
msgid "Compiling with .NET"
msgstr ""
#: ../../docs/engine_details/development/compiling/compiling_with_dotnet.rst:9
msgid "Requirements"
msgstr ""
#: ../../docs/engine_details/development/compiling/compiling_with_dotnet.rst:11
msgid "`.NET SDK 8.0+ <https://dotnet.microsoft.com/download>`_"
msgstr ""
#: ../../docs/engine_details/development/compiling/compiling_with_dotnet.rst:13
msgid "You can use ``dotnet --info`` to check which .NET SDK versions are installed."
msgstr ""
#: ../../docs/engine_details/development/compiling/compiling_with_dotnet.rst:16
msgid "Enable the .NET module"
msgstr ""
#: ../../docs/engine_details/development/compiling/compiling_with_dotnet.rst:18
msgid "C# support for Godot has historically used the `Mono <https://www.mono-project.com/>`_ runtime instead of the `.NET Runtime <https://github.com/dotnet/runtime>`_ and internally many things are still named ``mono`` instead of ``dotnet`` or otherwise referred to as ``mono``."
msgstr ""
#: ../../docs/engine_details/development/compiling/compiling_with_dotnet.rst:24
msgid "By default, the .NET module is disabled when building. To enable it, add the option ``module_mono_enabled=yes`` to the SCons command line, while otherwise following the instructions for building the desired Godot binaries."
msgstr ""
#: ../../docs/engine_details/development/compiling/compiling_with_dotnet.rst:29
msgid "Generate the glue"
msgstr ""
#: ../../docs/engine_details/development/compiling/compiling_with_dotnet.rst:31
msgid "Parts of the sources of the managed libraries are generated from the ClassDB. These source files must be generated before building the managed libraries. They can be generated by any .NET-enabled Godot editor binary by running it with the parameters ``--headless --generate-mono-glue`` followed by the path to an output directory. This path must be ``modules/mono/glue`` in the Godot directory:"
msgstr ""
#: ../../docs/engine_details/development/compiling/compiling_with_dotnet.rst:42
msgid "This command will tell Godot to generate the C# bindings for the Godot API at ``modules/mono/glue/GodotSharp/GodotSharp/Generated``, and the C# bindings for the editor tools at ``modules/mono/glue/GodotSharp/GodotSharpEditor/Generated``. Once these files are generated, you can build Godot's managed libraries for all the desired targets without having to repeat this process."
msgstr ""
#: ../../docs/engine_details/development/compiling/compiling_with_dotnet.rst:48
msgid "``<godot_binary>`` refers to the editor binary you compiled with the .NET module enabled. Its exact name will differ based on your system and configuration, but should be of the form ``bin/godot.<platform>.editor.<arch>.mono``, e.g. ``bin/godot.linuxbsd.editor.x86_64.mono`` or ``bin/godot.windows.editor.x86_32.mono.exe``. Be especially aware of the **.mono** suffix! If you've previously compiled Godot without .NET support, you might have similarly named binaries without this suffix. These binaries can't be used to generate the .NET glue."
msgstr ""
#: ../../docs/engine_details/development/compiling/compiling_with_dotnet.rst:57
msgid "The glue sources must be regenerated every time the ClassDB-registered API changes. That is, for example, when a new method is registered to the scripting API or one of the parameters of such a method changes. Godot will print an error at startup if there is an API mismatch between ClassDB and the glue sources."
msgstr ""
#: ../../docs/engine_details/development/compiling/compiling_with_dotnet.rst:64
msgid "Building the managed libraries"
msgstr ""
#: ../../docs/engine_details/development/compiling/compiling_with_dotnet.rst:66
msgid "Once you have generated the .NET glue, you can build the managed libraries with the ``build_assemblies.py`` script:"
msgstr ""
#: ../../docs/engine_details/development/compiling/compiling_with_dotnet.rst:73
msgid "If everything went well, the ``GodotSharp`` directory, containing the managed libraries, should have been created in the ``bin`` directory."
msgstr ""
#: ../../docs/engine_details/development/compiling/compiling_with_dotnet.rst:76
msgid "By default, all development builds share a version number, which can cause some issues with caching of the NuGet packages. To solve this issue either use ``GODOT_VERSION_STATUS`` to give every build a unique version or delete ``GodotNuGetFallbackFolder`` after every build to clear the package cache."
msgstr ""
#: ../../docs/engine_details/development/compiling/compiling_with_dotnet.rst:82
msgid "Unlike \"classical\" Godot builds, when building with the .NET module enabled (and depending on the target platform), a data directory may be created both for the editor and for exported projects. This directory is important for proper functioning and must be distributed together with Godot. More details about this directory in :ref:`Data directory<compiling_with_dotnet_data_directory>`."
msgstr ""
#: ../../docs/engine_details/development/compiling/compiling_with_dotnet.rst:90
msgid "Build Platform"
msgstr ""
#: ../../docs/engine_details/development/compiling/compiling_with_dotnet.rst:92
msgid "Provide the ``--godot-platform=<platform>`` argument to control for which platform specific the libraries are built. Omit this argument to build for the current system."
msgstr ""
#: ../../docs/engine_details/development/compiling/compiling_with_dotnet.rst:96
msgid "This currently only controls the inclusion of the support for Visual Studio as an external editor, the libraries are otherwise identical."
msgstr ""
#: ../../docs/engine_details/development/compiling/compiling_with_dotnet.rst:100
msgid "NuGet packages"
msgstr ""
#: ../../docs/engine_details/development/compiling/compiling_with_dotnet.rst:102
msgid "The API assemblies, source generators, and custom MSBuild project SDK are distributed as NuGet packages. This is all transparent to the user, but it can make things complicated during development."
msgstr ""
#: ../../docs/engine_details/development/compiling/compiling_with_dotnet.rst:106
msgid "In order to use Godot with a development version of those packages, a local NuGet source must be created where MSBuild can find them."
msgstr ""
#: ../../docs/engine_details/development/compiling/compiling_with_dotnet.rst:109
msgid "First, pick a location for the local NuGet source. If you don't have a preference, create an empty directory at one of these recommended locations:"
msgstr ""
#: ../../docs/engine_details/development/compiling/compiling_with_dotnet.rst:112
msgid "On Windows, ``C:\\Users\\<username>\\MyLocalNugetSource``"
msgstr ""
#: ../../docs/engine_details/development/compiling/compiling_with_dotnet.rst:113
msgid "On Linux, \\*BSD, etc., ``~/MyLocalNugetSource``"
msgstr ""
#: ../../docs/engine_details/development/compiling/compiling_with_dotnet.rst:115
msgid "This path is referred to later as ``<my_local_source>``."
msgstr ""
#: ../../docs/engine_details/development/compiling/compiling_with_dotnet.rst:117
msgid "After picking a directory, run this .NET CLI command to configure NuGet to use your local source:"
msgstr ""
#: ../../docs/engine_details/development/compiling/compiling_with_dotnet.rst:124
msgid "When you run the ``build_assemblies.py`` script, pass ``<my_local_source>`` to the ``--push-nupkgs-local`` option:"
msgstr ""
#: ../../docs/engine_details/development/compiling/compiling_with_dotnet.rst:131
msgid "This option ensures the packages will be added to the specified local NuGet 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 during development to avoid mistakes."
msgstr ""
#: ../../docs/engine_details/development/compiling/compiling_with_dotnet.rst:137
msgid "Building without depending on deprecated features (NO_DEPRECATED)"
msgstr ""
#: ../../docs/engine_details/development/compiling/compiling_with_dotnet.rst:139
msgid "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:"
msgstr ""
#: ../../docs/engine_details/development/compiling/compiling_with_dotnet.rst:148
msgid "Double Precision Support (REAL_T_IS_DOUBLE)"
msgstr ""
#: ../../docs/engine_details/development/compiling/compiling_with_dotnet.rst:150
msgid "When building Godot with double precision support, i.e. the ``precision=double`` argument for scons, the managed libraries must be adjusted to match by passing the ``--precision=double`` argument:"
msgstr ""
#: ../../docs/engine_details/development/compiling/compiling_with_dotnet.rst:159
msgid "Examples"
msgstr ""
#: ../../docs/engine_details/development/compiling/compiling_with_dotnet.rst:162
msgid "Example (Windows)"
msgstr ""
#: ../../docs/engine_details/development/compiling/compiling_with_dotnet.rst:179
msgid "Example (Linux, \\*BSD)"
msgstr ""
#: ../../docs/engine_details/development/compiling/compiling_with_dotnet.rst:197
msgid "Data directory"
msgstr ""
#: ../../docs/engine_details/development/compiling/compiling_with_dotnet.rst:199
msgid "The data directory is a dependency for Godot binaries built with the .NET module enabled. It contains important files for the correct functioning of Godot. It must be distributed together with the Godot executable."
msgstr ""
#: ../../docs/engine_details/development/compiling/compiling_with_dotnet.rst:204
msgid "Editor"
msgstr ""
#: ../../docs/engine_details/development/compiling/compiling_with_dotnet.rst:206
msgid "The name of the data directory for the Godot editor will always be ``GodotSharp``. This directory contains an ``Api`` subdirectory with the Godot API assemblies and a ``Tools`` subdirectory with the tools required by the editor, like the ``GodotTools`` assemblies and its dependencies."
msgstr ""
#: ../../docs/engine_details/development/compiling/compiling_with_dotnet.rst:211
msgid "On macOS, if the Godot editor is distributed as a bundle, the ``GodotSharp`` directory may be placed in the ``<bundle_name>.app/Contents/Resources/`` directory inside the bundle."
msgstr ""
#: ../../docs/engine_details/development/compiling/compiling_with_dotnet.rst:216
msgid "Export templates"
msgstr ""
#: ../../docs/engine_details/development/compiling/compiling_with_dotnet.rst:218
msgid "The data directory for exported projects is generated by the editor during the export. It is named ``data_<APPNAME>_<ARCH>``, where ``<APPNAME>`` is the application name as specified in the project setting ``application/config/name`` and ``<ARCH>`` is the current architecture of the export."
msgstr ""
#: ../../docs/engine_details/development/compiling/compiling_with_dotnet.rst:223
msgid "In the case of multi-architecture exports multiple such data directories will be generated."
msgstr ""
#: ../../docs/engine_details/development/compiling/compiling_with_dotnet.rst:227
msgid "Command-line options"
msgstr ""
#: ../../docs/engine_details/development/compiling/compiling_with_dotnet.rst:229
msgid "The following is the list of command-line options available when building with the .NET module:"
msgstr ""
#: ../../docs/engine_details/development/compiling/compiling_with_dotnet.rst:232
msgid "**module_mono_enabled**\\ =yes | **no**"
msgstr ""
#: ../../docs/engine_details/development/compiling/compiling_with_dotnet.rst:234
msgid "Build Godot with the .NET module enabled."
msgstr ""