Visual Studio Code and Linking Source
Last updated
Was this helpful?
This page explains how to modify your project so that the Gum source appears in Visual Studio Code.
Linking to source is optional - the quickest way to get set up is to use NuGet, but linking to source can be useful for improved debuggability, access to fixes and features before NuGet packages are published, or if you are interested in contributing.
If you are using Visual Studio Code, you may notice that even after linking the projects, the MonoGameGum source code does not appear in your File Explorer. This is because VS Code defaults to showing only the folder you have opened.
To make the source project visible and editable alongside your game, you can convert your setup into a Multi-root Workspace:
Open your game folder in VS Code.
Go to File > Add Folder to Workspace...
Navigate to and select the MonoGameGum folder.
Go to File > Save Workspace As... and save the file (e.g., MyGame.code-workspace) in your project root.
Both folders will now appear in your sidebar as separate "roots," allowing you to browse, edit, and step into the Gum source code while debugging.
If you have the C# Dev Kit extension installed, VS Code can also behave more like "normal" Visual Studio using a .sln file:
Open a terminal in your game's root.
Create a solution if you don't have one: dotnet new sln
Add your game and the Gum source to it:
Bash
dotnet sln add YourGame.csproj
dotnet sln add ../Path/To/MonoGameGum/MonoGameGum.csprojThe projects will now appear in the Solution Explorer pane (the icon with the three stacked boxes), even if the folders are in different locations on your hard drive.
Last updated
Was this helpful?
Was this helpful?

