Loading of Microsoft.AspNetCore.SignalR.Client DLL
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I'm working on a Revit addin that depends on a package which uses the Microsoft.AspNetCore.SignalR.Client (6.0.13) package.
Microsoft.AspNetCore.SignalR.Client depends on Microsoft.Extensions.Logging.Abstractions (6.0.3) through the following dependencies:
Microsoft.AspNetCore.SignalR.Client
|
Microsoft.AspNetCore.SignalR.Client.Common
|
Microsoft.Extensions.Logging
|
Microsoft.Extensions.Logging.Abstractions
If I create an instance of the class HubConnectionBuilder, [email protected] is always loaded. Even when [email protected] is already loaded as an assembly, in that case it has the two versions loaded.
Currently this is causing a crash later on, because the internal logger of SignalR is created with an older version.
Adding a AssemblyResolve event handler doesn't work, as the event is not triggered when loading the Microsoft.Extensions.Logging.Abstractions dll.
I added a github repo in which I added a simple addin in which the scenario can be reproduced.
One of my theories was that Revit has a AssemblyResolve event registered that overrides the resolve of the Microsoft.Extensions.Logging.Abstractions dll. I tried to confirm this, by using the fuslog viewer to see which dll loads the v2.2.0 of the Microsoft.Extensions.Logging.Abstractions.dll, unfortunately I could not find any additional information in the logs.
Does anyone have an idea why Revit loads v2.2.0 of the Microsoft.Extensions.Logging.Abstractions.dll?
I would expect it to use v6.0.3, as this is already loaded.
Creating a IPC application is not an option in our environment.
Developer Advocacy and Support +