This extension saved my dependency hell and I would like to understand why #5
-
|
Hello, I was chasing a bug for some time, where when I opened a command I would get an system exception where a dependency was not found. The dependency was System.Text.Json version 7.0.0. I noticed this happened only on a command which calls an external library "Airtable" which depends upon System.Text.Json version 7.0.2. I did everything I could to solve this, I installed the exact version from Nuget, I researched the assembly binding logs, etc. Finally I realised that the second command I made inherits from The fix to make the first command work was to inherit from |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
|
Hi, this issue related to the https://github.com/Nice3point/RevitToolkit, not RevitExtensions nevertheless, I'll try to explain what this is all about ExternalCommand used This info is described in the Readme https://github.com/Nice3point/RevitToolkit?tab=readme-ov-file#resolvehelper All this helps to resolve dependencies, and load the correct libraries. In the empty |
Beta Was this translation helpful? Give feedback.
Hi, this issue related to the https://github.com/Nice3point/RevitToolkit, not RevitExtensions
nevertheless, I'll try to explain what this is all about
ExternalCommand used
ResolveHelperhttps://github.com/Nice3point/RevitToolkit/blob/main/source/Nice3point.Revit.Toolkit/Helpers/ResolveHelper.cs under the hood for Revit2020-2024 andAssemblyLoadContextfor Revit2025+ https://github.com/Nice3point/RevitToolkit/blob/main/source/Nice3point.Revit.Toolkit/Helpers/AddinLoadContext.csThis info is described in the Readme https://github.com/Nice3point/RevitToolkit?tab=readme-ov-file#resolvehelper
All this helps to resolve dependencies, and load the correct libraries. In the empty
IExternalCommand…