Skip to content

Commit 5139a3d

Browse files
Include dotnet tool commands in project setup guides
1 parent 0624429 commit 5139a3d

File tree

2 files changed

+26
-0
lines changed

2 files changed

+26
-0
lines changed

articles/getting_started/2_choosing_your_ide_rider.md

+13
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,19 @@ To get you started with Rider, here are the steps for setting up a new Rider Mon
4747
4. Press "Create"
4848
5. You can now press `F5` to compile and debug your game, happy coding :)
4949

50+
## Update Project Tool references
51+
52+
The MonoGame Content Editor (MGCB) it a tool delivered through NuGet for your project using the tools configuration held in your `dotnet-tools.json` file (located in the `.config` folder of your project).
53+
54+
Once you have created your project you should run the following terminal/command-line command to ensure the tool (and the pipeline) is setup and read for your project:
55+
56+
```dotnetcli
57+
dotnet tool restore
58+
```
59+
60+
> [!NOTE]
61+
> If you ever change the version of the tools or want to upgrade them by editing the `dotnet-tools.json` configuration, you MUST run this command again to update te tools.
62+
5063
## Next Steps
5164

5265
Next, get to know MonoGame's code structure and project layout:

articles/getting_started/2_choosing_your_ide_vscode.md

+13
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,19 @@ You can find this extension by following the steps above and searching for "Mono
9494
4. Once the files are created, open up the `Game1.cs` file and wait a second for the C# extension to load
9595
5. You can now press F5, select C# and then your projects name if Visual Studio Code asks you, and it should start up your brand new game!
9696
97+
## Update Project Tool references
98+
99+
The MonoGame Content Editor (MGCB) it a tool delivered through NuGet for your project using the tools configuration held in your `dotnet-tools.json` file (located in the `.config` folder of your project).
100+
101+
Once you have created your project you should run the following terminal/command-line command to ensure the tool (and the pipeline) is setup and read for your project:
102+
103+
```dotnetcli
104+
dotnet tool restore
105+
```
106+
107+
> [!NOTE]
108+
> If you ever change the version of the tools or want to upgrade them by editing the `dotnet-tools.json` configuration, you MUST run this command again to update te tools.
109+
97110
## Next Steps
98111
99112
Next, get to know MonoGame's code structure and project layout:

0 commit comments

Comments
 (0)