mirror of
https://github.com/goatcorp/Dalamud.git
synced 2025-12-12 18:27:23 +01:00
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:
parent
875452caa4
commit
644811e074
2 changed files with 2 additions and 0 deletions
|
|
@ -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;
|
||||||
|
|
|
||||||
|
|
@ -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());
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue