Open goswinr opened 1 month ago
Using ILMerge might be a better solution: https://fsharp.github.io/fsharp-compiler-docs/fsharp-core-notes.html#FSharp-Core-and-static-linking https://forums.autodesk.com/t5/revit-api-forum/reference-external-dll-conflicts-ilmerge-fody-etc/td-p/9624575
[cwaluga] 07-09-2020 01:01 PM I use ILMerge to bundle external [cwaluga] 07-09-2020 01:01 PM I use ILMerge to bundle external libraries including their references into one versioned DLL each, for instance ThirdPartyStuff_1.76.dll contains version 1.76 of „third party stuff“ including possible dependencies. This can be used without problems alongside other versions different plugins may use, at least unless somebody coincidentally names another version or DLL in the same way (which is highly unlikely).
side note: it is unbelievable that in 2020, after years of progress made in the .Net environment, dll hell is still an issue. libraries including their references into one versioned DLL each, for instance ThirdPartyStuff_1.76.dll contains version 1.76 of „third party stuff“ including possible dependencies. This can be used without problems alongside other versions different plugins may use, at least unless somebody coincidentally names another version or DLL in the same way (which is highly unlikely).
side note: it is unbelievable that in 2020, after years of progress made in the .Net environment, dll hell is still an issue.
When loading in Revit 2023 there is a
System.TypeLoadException: Could not load type 'System.Diagnostics.ActivitySource' from assembly 'System.Diagnostics.DiagnosticSource, Version=4.0.1.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51'.
a binding redirect in
Revti.exe.config
might be needed. See https://forums.autodesk.com/t5/revit-api-forum/proper-way-to-handle-app-config-bindingredirects-in-revit-add-in/td-p/5692149