示例#1
0
 public static ComposableCatalog GetCSharpAndVisualBasicAssemblyCatalog()
 {
     return(ExportProviderCache.GetOrCreateAssemblyCatalog(
                GetNeutralAndCSharpAndVisualBasicTypes().Select(t => t.Assembly).Distinct(), ExportProviderCache.CreateResolver())
            .WithParts(MinimalTestExportProvider.GetEditorAssemblyCatalog())
            .WithDefaultFakes());
 }
 public static ComposableCatalog CreateAssemblyCatalog()
 {
     return(ExportProviderCache.GetOrCreateAssemblyCatalog(GetLanguageNeutralTypes().Select(t => t.Assembly).Distinct(), ExportProviderCache.CreateResolver())
            .WithParts(MinimalTestExportProvider.GetEditorAssemblyCatalog()));
 }