.NET 6.0 .NET Framework 4.7.2
NuGet\Install-Package MonoGame.Framework.WPF -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.
dotnet add package MonoGame.Framework.WPF --version
<PackageReference Include="MonoGame.Framework.WPF" Version="" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add MonoGame.Framework.WPF --version
#r "nuget: MonoGame.Framework.WPF,"
#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.Framework.WPF as a Cake Addin
#addin nuget:?package=MonoGame.Framework.WPF&version=

// Install MonoGame.Framework.WPF as a Cake Tool
#tool nuget:?package=MonoGame.Framework.WPF&version=

用于在WPF中呈现MonoGame,与其它方案不同的是,使用了MonoGame原有的结构,而不是外挂式的操作,所以能无缝支持MonoGame现有的扩展或引擎,无需任何改动。 使用方式: 在窗体的句柄创建完成后:Window.SourceInitialized Game game=new Game(); game.HostControl=img1;//img1是一个System.Windows.Controls.Image控件 game.Run();

Product Versions
.NET net6.0-windows7.0
.NET Framework net472 net48
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 110 3/18/2022