ARTICLE AD BOX
There is both Harmony the namespace (from MelonLoader) and Harmony the type. It's unfortunate that the MelonLoader authors did that, to be honest... however, there are options to stop it from being a problem:
First option: qualify the usage:
HarmonyLib.Harmony harmony = new HarmonyLib.Harmony("com.xbeardeddice.examplemod");This becomes shorter if you use var:
var harmony = new HarmonyLib.Harmony("com.xbeardeddice.examplemod");Second option: create an alias:
using HarmonyClass = global::HarmonyLib.Harmony; ... HarmonyClass harmony = new HarmonyClass("com.xbeardeddice.examplemod");1.5m895 gold badges9.3k silver badges9.4k bronze badges
Explore related questions
See similar questions with these tags.

