Replies: 3 comments 5 replies
-
|
What do your binding redirects look like? Are they on the main program, or the plugin? Not an expert on this |
Beta Was this translation helpful? Give feedback.
-
|
oops, somehow missed the notification for this response.
|
Beta Was this translation helpful? Give feedback.
-
|
My application is set to automatically generate binding redirects. I use many different 3rd party libraries that I have upgraded and I have only encountered this issue after upgrading SSH.NET, so I do think this issue is specific to this library. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi there, Would someone be able to help me resolve this issue? I am targeting a project (plugin dll) with .NET Framework 4.8.
My main program is now on the latest version of Microsoft.Extensions.Logging.Abstractions which is 9.0.9.
When I attempt to use the SSH.NET library, I get the following error:
Could not load file or assembly 'Microsoft.Extensions.Logging.Abstractions, Version=8.0.0.3, Culture=neutral, PublicKeyToken=adb9793829ddae60' or one of its dependencies. The system cannot find the file specified. at Renci.SshNet.ServiceFactory..ctor()
However, nuGet and all the relevant documentation says that 8.0.0.3 is only the minimum version required by SSH.NET,
so why would this happen?
If I use a binding redirect, I get this compile warning and it still causes an error
warning MSB3277: "Microsoft.Extensions.Logging.Abstractions, Version=8.0.0.3, Culture=neutral, PublicKeyToken=adb9793829ddae60" was chosen because it was primary and "Microsoft.Extensions.Logging.Abstractions, Version=9.0.0.9, Culture=neutral, PublicKeyToken=adb9793829ddae60" was not.
Thank you so much. this library is great!
Beta Was this translation helpful? Give feedback.
All reactions