mirror of
https://github.com/ICDSystems/ICD.Common.Utils.git
synced 2026-01-11 19:44:55 +00:00
fix: Fixed plugin loading for .net framework
This commit is contained in:
@@ -274,17 +274,12 @@ namespace ICD.Common.Utils
|
||||
|
||||
string fileNameWithOutExtension = IcdPath.GetFileNameWithoutExtension(path);
|
||||
|
||||
#if SIMPLSHARP
|
||||
|
||||
#if !NETSTANDARD
|
||||
try
|
||||
{
|
||||
return Assembly.Load(new AssemblyName {Name = fileNameWithOutExtension});
|
||||
}
|
||||
catch (IOException)
|
||||
{
|
||||
return Assembly.LoadFrom(path);
|
||||
}
|
||||
catch (FileNotFoundException)
|
||||
catch (Exception)
|
||||
{
|
||||
return Assembly.LoadFrom(path);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user