Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
AggregateCatalog catalog = new AggregateCatalog();
// Add all the parts found in all assemblies in
// the same directory as the executing program
new DirectoryCatalog(
Assembly.GetExecutingAssembly().Location )
CompositionContainer container = new CompositionContainer(catalog);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment