mirror of
https://github.com/godotengine/godot-docs.git
synced 2026-01-04 14:11:02 +03:00
Simplify C# NuGet package doc to match 3.2.3+
(cherry picked from commit eb10a49864)
This commit is contained in:
@@ -283,23 +283,13 @@ the ``.csproj`` file located in the project root:
|
||||
:emphasize-lines: 2
|
||||
|
||||
<ItemGroup>
|
||||
<PackageReference Include="Newtonsoft.Json">
|
||||
<Version>11.0.2</Version>
|
||||
</PackageReference>
|
||||
<PackageReference Include="Newtonsoft.Json" Version="11.0.2" />
|
||||
</ItemGroup>
|
||||
...
|
||||
</Project>
|
||||
|
||||
.. note::
|
||||
By default, tools like NuGet put ``Version`` as an attribute of the ```PackageReference``` Node. **You must manually create a Version node as shown above.** This is because the version of MSBuild used requires this. (This will be fixed in Godot 4.0.)
|
||||
|
||||
Whenever packages are added or modified, run ``nuget restore`` (*not* ``dotnet restore``) in the root of the
|
||||
project directory. To ensure that NuGet packages will be available for
|
||||
msbuild to use, run:
|
||||
|
||||
.. code-block:: none
|
||||
|
||||
msbuild /t:restore
|
||||
When Godot builds your project, the .NET Core SDK automatically downloads any
|
||||
new packages. As of Godot 3.2.3, no special commands are necessary.
|
||||
|
||||
Profiling your C# code
|
||||
----------------------
|
||||
|
||||
Reference in New Issue
Block a user