From 309036936ab01c1d59c1cb60e6f8fc21983cc24b Mon Sep 17 00:00:00 2001 From: Michael Ripley Date: Mon, 29 Aug 2022 02:11:12 -0500 Subject: [PATCH] Fix assembly loading on windows headless fixes #53 --- NeosModLoader/AssemblyLoader.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/NeosModLoader/AssemblyLoader.cs b/NeosModLoader/AssemblyLoader.cs index a224a1a..a11dfb6 100644 --- a/NeosModLoader/AssemblyLoader.cs +++ b/NeosModLoader/AssemblyLoader.cs @@ -49,7 +49,7 @@ internal static class AssemblyLoader try { Logger.DebugFuncInternal(() => $"load assembly {filename}"); - assembly = Assembly.LoadFile(filepath); + assembly = Assembly.LoadFrom(filepath); } catch (Exception e) {