Additional .dll files as resource
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I'm developing a REVIT addin that needs a external .dll library.
In order to reduce the number of deployed files, I want to integrate that .dll library as a resource. However, I'm struggling with associating the event handler for the AssemblyResolve. The event dosen't fire up when a not found library is raised.
Where should I place the bellow AddHandler command? At OnStart event handler (that runs when REVIT loads the addin) or at the addin Execute (that runs when REVIT executes the command)?
AddHandler AppDomain.CurrentDomain.AssemblyResolve, AddressOf ResolveAssemblies
Any example on this?
Do you deploy additional dll libraries as a separate files, or do you integrate then in the main addin .dll as a resource?
Link copied