Mono.Addins: Can the main application register an extension whose extension point is registered by another application?

I have the following script:

General project

  • Registers multiple extension points (all interfaces). An extension manager class that returns registered extensions.

Library project

  • Registered as addin root Registers an extension whose extension point is registered with the Common Project Registers as an extension point

  • Has an extension manager that returns numbers registered to the extension point above

  • Requests The general project to receive an extension of the same type and receives nothing (the extension is registered in the main application, did not try to put a copy of exe in the addins directory)

Main application (exe)

  • Registered Ass addin root Registers an extension whose extension point is in the Common Project
  • It will request an extension in which both the extension point and the extension are registered in the library project.
  • It is interrupted to receive the extension only when Library.dll is in the directory. / addins.

My questions

  • Do we not have a separate project that registers only the extension of points and have other assemblies, including the main application to export / expand registration of these points?
  • Do we intend to keep all extension points in the main application or some additive root? What if the extension developers submit their extensions which refers to an outdated version of our main assemblies that register points?
+6
source share

No one has answered this question yet.

Source: https://habr.com/ru/post/984428/


All Articles