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
This commit is contained in:
Raymond 2021-09-28 07:35:02 -04:00
parent 875452caa4
commit 644811e074
2 changed files with 2 additions and 0 deletions

View file

@ -1,6 +1,7 @@
using System; using System;
using System.Diagnostics.CodeAnalysis; using System.Diagnostics.CodeAnalysis;
using System.Numerics; using System.Numerics;
using Dalamud.Interface; using Dalamud.Interface;
using Dalamud.Interface.Colors; using Dalamud.Interface.Colors;
using Dalamud.Interface.Windowing; using Dalamud.Interface.Windowing;

View file

@ -436,6 +436,7 @@ namespace Dalamud.Plugin.Internal
config.IsUnloadable = true; config.IsUnloadable = true;
config.LoadInMemory = true; config.LoadInMemory = true;
config.PreferSharedTypes = false; config.PreferSharedTypes = false;
config.SharedAssemblies.Add(typeof(IDalamudPlugin).Assembly.GetName());
config.SharedAssemblies.Add(typeof(Lumina.GameData).Assembly.GetName()); config.SharedAssemblies.Add(typeof(Lumina.GameData).Assembly.GetName());
config.SharedAssemblies.Add(typeof(Lumina.Excel.ExcelSheetImpl).Assembly.GetName()); config.SharedAssemblies.Add(typeof(Lumina.Excel.ExcelSheetImpl).Assembly.GetName());
} }