Install a development MonoGame build
Do you want to build your game with MonoGame’s latest and greatest develop branch? You don’t need to wait for official MonoGame releases.
Each time a new commit makes it into the MonoGame develop branch, new builds are automatically released to the MonoGame GitHub NuGet feed. To install them into a project, you can execute the following commands. Note that some of them can take some time to complete as large files are downloaded.
- Generate a Personal access tokens (classic): https://github.com/settings/tokens.
- Make sure that it has the
read:packages
scope.
- Make sure that it has the
- Add the MonoGame GitHub NuGet feed. Replace
USERNAME
with your GitHub username andTOKEN
with the generated access token from above:dotnet nuget add source -n MonoGameGitHub https://nuget.pkg.github.com/MonoGame/index.json --username USERNAME --password TOKEN
- From the folder with your game’s .csproj:
dotnet add package MonoGame.Framework.DesktopGL --prerelease dotnet add package MonoGame.Content.Builder.Task --prerelease
- To install the MonoGame templates:With that you will be able to use
dotnet new install MonoGame.Templates.CSharp::*-*
dotnet new mgdesktopgl -o MyGame
.
You can repeat step 3 and 4 whenever you want to update.
You can also install a specific version:
dotnet add package MonoGame.Framework.DesktopGL --version 3.8.4.2602-develop
dotnet add package MonoGame.Content.Builder.Task --version 3.8.4.2602-develop
dotnet new install MonoGame.Templates.CSharp::3.8.4.2602-develop
To remove the GitHub source from step 2, you can do:
dotnet nuget remove source MonoGameGitHub
Read more
- Using the Development Nuget Packages
- Working with the NuGet registry
- Managing your personal access tokens
- dotnet nuget add source
- dotnet nuget list source