MEF, can I export/import classes with multiple MetaDataAttribute decorations?
问题 How can I make the following code work? It throws an error saying that there are two meta data attributes of identical names, though I do not see why. The error message is as follows: An unhandled exception of type 'System.InvalidOperationException' occurred in System.ComponentModel.Composition.dll Additional information: Member or Type 'ConsoleApplication2.DoSomeMagic' contains multiple metadata entries with the name 'PluginName'. The metadata entries could be coming from the