From 644811e074ab1d75941276444e2ca83c126a5d92 Mon Sep 17 00:00:00 2001 From: Raymond Date: Tue, 28 Sep 2021 07:35:02 -0400 Subject: [PATCH] Include the Dalamud assembly as a shared assembly If you don't set dalamud to private=false, so that dalamud.dll is in your dev plugin dist folder, the plugin will fail to load, thinking it should use it's version of Dalamud.dll, so it is now a different IDalamudPlugin --- Dalamud.CorePlugin/PluginWindow.cs | 1 + Dalamud/Plugin/Internal/LocalPlugin.cs | 1 + 2 files changed, 2 insertions(+) diff --git a/Dalamud.CorePlugin/PluginWindow.cs b/Dalamud.CorePlugin/PluginWindow.cs index efc3ce2f7..2da4c6033 100644 --- a/Dalamud.CorePlugin/PluginWindow.cs +++ b/Dalamud.CorePlugin/PluginWindow.cs @@ -1,6 +1,7 @@ using System; using System.Diagnostics.CodeAnalysis; using System.Numerics; + using Dalamud.Interface; using Dalamud.Interface.Colors; using Dalamud.Interface.Windowing; diff --git a/Dalamud/Plugin/Internal/LocalPlugin.cs b/Dalamud/Plugin/Internal/LocalPlugin.cs index 8c959755f..6c0c0e70f 100644 --- a/Dalamud/Plugin/Internal/LocalPlugin.cs +++ b/Dalamud/Plugin/Internal/LocalPlugin.cs @@ -436,6 +436,7 @@ namespace Dalamud.Plugin.Internal config.IsUnloadable = true; config.LoadInMemory = true; config.PreferSharedTypes = false; + config.SharedAssemblies.Add(typeof(IDalamudPlugin).Assembly.GetName()); config.SharedAssemblies.Add(typeof(Lumina.GameData).Assembly.GetName()); config.SharedAssemblies.Add(typeof(Lumina.Excel.ExcelSheetImpl).Assembly.GetName()); }