Skip to content
Discussion options

You must be logged in to vote

I've never used ApplicationCatalog, but based on its summary doc:

Discovers attributed parts in the dynamic link library (DLL) and EXE files in an application's directory and path.

That's trivial to reproduce with VS-MEF. Enumerate the files you want to include in the catalog (e.g. Directory.EnumerateFiles) and pass that to PartDiscovery.CreatePartsAsync.

We use this in Visual Studio to scan 300 assemblies in several seconds. One assembly shouldn't ever take 5 minutes unless (maybe?) it was 1GB in size or you had a debugger attached that was slowing it down.

And yes, VS-MEF produces much better diagnostics for catalog and composition level errors.

Replies: 4 comments 7 replies

Comment options

You must be logged in to vote
0 replies
Answer selected by PawcioCNCProfi
Comment options

You must be logged in to vote
1 reply
@AArnott
Comment options

Comment options

You must be logged in to vote
4 replies
@AArnott
Comment options

@PawcioCNCProfi
Comment options

@AArnott
Comment options

@Audionysos
Comment options

Comment options

You must be logged in to vote
2 replies
@AArnott
Comment options

@Audionysos
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants