.NET 5.0
dotnet add package MonoGame.Microsoft.Extensions.Hosting --version
NuGet\Install-Package MonoGame.Microsoft.Extensions.Hosting -Version
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="MonoGame.Microsoft.Extensions.Hosting" Version="" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add MonoGame.Microsoft.Extensions.Hosting --version
#r "nuget: MonoGame.Microsoft.Extensions.Hosting,"
#r directive can be used in F# Interactive, C# scripting and .NET Interactive. Copy this into the interactive tool or source code of the script to reference the package.
// Install MonoGame.Microsoft.Extensions.Hosting as a Cake Addin
#addin nuget:?package=MonoGame.Microsoft.Extensions.Hosting&version=

// Install MonoGame.Microsoft.Extensions.Hosting as a Cake Tool
#tool nuget:?package=MonoGame.Microsoft.Extensions.Hosting&version=

Adds a MonoGame lifetime to the Microsoft.Extensions.Hosting framework.

new HostBuilder().RunMonoGameAsync<MyGame>();

Product Versions
.NET net5.0-windows7.0
Compatible target framework(s)
Additional computed target framework(s)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated 314 3/16/2021
5.0.0 224 3/15/2021