Fixes an issue with the assembly resolver

This commit is contained in:
Ryan Newington
2023-02-04 17:35:44 +11:00
parent 9669ab5a04
commit e61045cc8a
11 changed files with 22 additions and 20 deletions
@@ -18,7 +18,7 @@
<Copyright>Copyright 2023 Lithnet Pty Ltd</Copyright>
<ProductName>Lithnet Windows Credential Provider</ProductName>
<VersionPrefix>1.0.0</VersionPrefix>
<VersionSuffix>beta.43</VersionSuffix>
<VersionSuffix>alpha1</VersionSuffix>
<Authors>Lithnet</Authors>
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
<AutoIncrementPackageRevision>true</AutoIncrementPackageRevision>
@@ -42,11 +42,10 @@ namespace Lithnet.CredentialProvider.ModuleInit
string assyPath = Path.Combine(basePath, $"{name.Name}.dll");
if (File.Exists(assyPath))
{
Trace.WriteLine($"Found at {assyPath}");
return Assembly.Load(assyPath);
return Assembly.LoadFrom(assyPath);
}
Trace.WriteLine($"Assembly {args.Name} not found");