Linking Game Project to Source (Optional)
Introduction
The easiest way to use Gum is to add the NuGet packages to your game project. Alternatively you can link your game to Gum source for additional debugging, to stay up to date with the latest improvements, or if you are interested in contributing.
This document assumes you already have a game project with the Gum NuGet packages linked.
Linking Source
If you have followed the Setup steps, then you should have a game which references the Gum NuGet package.

To replace this package with source references:
Clone the Gum repository https://github.com/vchelaru/Gum
Remove the NuGet package by selecting your Gum.MonoGame and pressing the Delete key.
Right-click on your Solution in the Solution Explorer and select Add -> Existing Project...
Select <Gum Root>/MonoGameGum/MonoGameGum.csproj
Repeat the previous step for the following csproj file: <Gum Root>/GumCommon/GumCommon.csproj

A game project and Gum source code projects in the Visual Studio Solution Explorer Right-click on your game project's Dependencies folder and select Add Project Reference...
Check the Gum projects you added to the solution earlier and click OK\

Check the Gum projects then click OK 
If you have followed the Setup steps, then you should have a game which references the Gum NuGet package.

To replace this package with source references:
Clone the Gum repository https://github.com/vchelaru/Gum
Remove the NuGet package by selecting your Gum.raylib and pressing the Delete key. If you are using VSCode, you can also edit the .csproj to remove this package reference
Right-click on your Solution in the Solution Explorer and select Add -> Existing Project...
Select <Gum Root>/Runtimes/RaylibGum/RaylibGum.csproj
Repeat the previous step for the following csproj file: <Gum Root>/GumCommon/GumCommon.csproj\

A game project and Gum source code projects in the Visual Studio Solution Explorer Right-click on your game project's Dependencies folder and select Add Project Reference...
Check the Gum projects you added to the solution earlier and click OK\

Check the Gum projects then click OK 
You are now fully linked to source. You can build and run your game.
Last updated
Was this helpful?

