Added condition to check for _loadedPluginsDirectoryPath when loading plugins

This commit is contained in:
hvolmer
2020-03-27 12:52:19 -06:00
parent 5272f84507
commit b335617e37
2 changed files with 10 additions and 5 deletions

View File

@@ -415,14 +415,15 @@ namespace PepperDash.Essentials
// Deal with any .cplz files
UnzipAndMoveCplzArchives();
// Load the assemblies from the loadedPlugins folder into the AppDomain
LoadPluginAssemblies();
if(Directory.Exists(_loadedPluginsDirectoryPath) {
// Load the assemblies from the loadedPlugins folder into the AppDomain
LoadPluginAssemblies();
// Load the types from any custom plugin assemblies
LoadCustomPluginTypes();
// Load the types from any custom plugin assemblies
LoadCustomPluginTypes();
}
}
}
}
/// <summary>