Created
January 13, 2018 18:24
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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