Skip to content

Instantly share code, notes, and snippets.

Embed
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
catalog.Catalogs.Add(
new DirectoryCatalog(
Path.GetDirectoryName(
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
You can’t perform that action at this time.