From 133c7cc4b172f76a2e027094d899cf908a4e882e Mon Sep 17 00:00:00 2001 From: Michael Ripley Date: Mon, 29 Aug 2022 02:30:43 -0500 Subject: [PATCH] Fix assembly loading on windows headless (#70) 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) {