Fix module dependencies not loading with module assembly
This commit is contained in:
parent
ffded1b45c
commit
cf5db191dc
1 changed files with 1 additions and 1 deletions
|
@ -17,7 +17,7 @@ static class ModuleLoader {
|
||||||
foreach (var file in conf.Assemblies) {
|
foreach (var file in conf.Assemblies) {
|
||||||
Assembly? a = null;
|
Assembly? a = null;
|
||||||
try {
|
try {
|
||||||
a = Assembly.LoadFile(path + file);
|
a = Assembly.LoadFrom(path + file);
|
||||||
} catch (Exception ex) {
|
} catch (Exception ex) {
|
||||||
Console.WriteLine("An error occurred when attempting to load a module assembly.");
|
Console.WriteLine("An error occurred when attempting to load a module assembly.");
|
||||||
Console.WriteLine($"File: {file}");
|
Console.WriteLine($"File: {file}");
|
||||||
|
|
Loading…
Reference in a new issue