Skip to content

Project Setup

Nigel Kennington edited this page Oct 25, 2023 · 2 revisions

At the moment, the package is best downloaded directly and then manually configured as below.

Create a new Monogame Windows Desktop Application. Mine is called ImGuiTest:

mgdimgui1

Download the MonoGame.ImGuiNet project by selecting the <> Code ▼ button in GitHub and then download the project as a zip file:

mgdimgui2

You can technically unzip this anywhere you like, but we’d strongly recommend doing it in your solution folder, like this:

mgdimgui3

With the unzipped project inside your test project, right click on the Solution and select Add -> Existing Project…

mgdimgui4

And then find and select the .csproj file in the MonoGame.ImgGuiNet project:

mgdimgui5

Your Solution Explorer shoud show now show both your main game project and the Monogame.ImGuiNet project as follows:

mgdimgui5b

Now add a project reference to your main game project by right-clicking your game project and then selecting Add -> Project Reference:

mgdimgui6

Finally select the checkbox that should appear in the entry for MonoGame.ImgGuiNet:

mgdimgui7

At last we’re ready to code!

Clone this wiki locally