Reputation: 1301
I am creating an architecture where we use a lot of plugins. We'd like to implement sort of "assembly custom metadata", which would tell the plugin host required settings for this assembly. We'd like to "describe" those settings in xml and include that xml description inside the assembly. Is it feasible? I know that I can use a custom assembly attribute, but I am looking for a different solution.
Upvotes: 1
Views: 301
Reputation: 115691
There are several ways to do that.
PluginDescriptor.xml
, into the assembly and then Assembly.GetManifestResourceStream()
it in your host applicationPluginDescriptorAttribute
, which would contain the name of the resource to read to get hold of the XML filenupkg
files are packaged)Upvotes: 1