1. Aside from this issue, is AddinFileSystemExtension suitable for
this purpose?
2. Is there a way around this problem without a change in Mono.Addins?
3. If not, I could probably change Mono.Addins to achieve what I want,
but how can I maximize the chance that my patch would be accepted back
into the project?
Regards,
Weeble.
I would like to prevent scanning for addins and addin roots of DLLs in
my application directory except for those that I explicitly whitelist.
Right now I have to add <exclude> entries for every *other* DLL in
that directory. I see that AddinFileSystemExtension can be used to
provide a virtualized view of the file-system to the scanner, so it
seems theoretically possible that I could just provide it with a view
that hides all DLLs except for the ones in my whitelist. However, I
can't see a way to use this correctly. I can register this with an
AddinRegistry with RegisterExtension, but AddinEngine.Initialize
creates a new AddinRegistry and then immediately starts scanning with
it, before I have an opportunity to register any extension with it. So
even though I can eventually register the extension, it's too late,
because the registry has already scanned all the DLLs in the
application directory.
1. Aside from this issue, is AddinFileSystemExtension suitable for
this purpose?
2. Is there a way around this problem without a change in Mono.Addins?
3. If not, I could probably change Mono.Addins to achieve what I want,
but how can I maximize the chance that my patch would be accepted back
into the project?