ModioMori.HarmonyXPack 2.16.0-p1

This is a prerelease version of ModioMori.HarmonyXPack.
dotnet add package ModioMori.HarmonyXPack --version 2.16.0-p1
                    
NuGet\Install-Package ModioMori.HarmonyXPack -Version 2.16.0-p1
                    
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="ModioMori.HarmonyXPack" Version="2.16.0-p1" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="ModioMori.HarmonyXPack" Version="2.16.0-p1" />
                    
Directory.Packages.props
<PackageReference Include="ModioMori.HarmonyXPack" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add ModioMori.HarmonyXPack --version 2.16.0-p1
                    
#r "nuget: ModioMori.HarmonyXPack, 2.16.0-p1"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package ModioMori.HarmonyXPack@2.16.0-p1
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=ModioMori.HarmonyXPack&version=2.16.0-p1&prerelease
                    
Install as a Cake Addin
#tool nuget:?package=ModioMori.HarmonyXPack&version=2.16.0-p1&prerelease
                    
Install as a Cake Tool

HarmonyXPack

Build

A ready-to-use dependency, packing in the latest HarmonyX (and consequently MonoMod/Cecil) for other Gladio Mori mods to rely upon. Find it on mod.io here.

Usage

To use this pack, you'll need to add a reference to the nuget.org package ModioMori.HarmonyXPack. This package is solely a metapackage that keeps its runtime private, so HarmonyX will not be emitted when you build your mod. The runtime will be shipped by the HarmonyXPack game mod on mod.io, which requires a dependency added on mod.io.

Importantly, you must add this mod as a dependency to your gm.modcfg file and as a dependency on mod.io. If you are trying to use HarmonyX with a local (not published to mod.io) mod, you must build and package this yourself. This is because the game loads local mods before mod.io mods, so your load order will be wrong if you don't do this.

For an example group of package references in your .csproj:

<ItemGroup>
  <PackageReference Include="Microsoft.NETFramework.ReferenceAssemblies" Version="1.0.3" PrivateAssets="all" />
  <PackageReference Include="ModioMori.HarmonyXPack" Version="2.16.0-p1" />
  <PackageReference Include="UnityEngine.Modules" Version="6000.0.59" IncludeAssets="compile" />
</ItemGroup>

For an example gm.modcfg:

{
  "modioDependencies": [5585734]
}
Product Compatible and additional computed target framework versions.
.NET Framework net481 is compatible. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • .NETFramework 4.8.1

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
2.16.0-p1 461 12/19/2025