浏览代码

Simplify C# NuGet package doc to match 3.2.3+

31 4 年之前
父节点
当前提交
eb10a49864
共有 1 个文件被更改,包括 3 次插入13 次删除
  1. 3 13
      tutorials/scripting/c_sharp/c_sharp_basics.rst

+ 3 - 13
tutorials/scripting/c_sharp/c_sharp_basics.rst

@@ -280,23 +280,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
 ----------------------