public static ComposableCatalog CreateAssemblyCatalog()
 {
     return(MinimalTestExportProvider.CreateAssemblyCatalog(
                GetLanguageNeutralTypes().Select(t => t.Assembly).Distinct().Concat(MinimalTestExportProvider.GetVisualStudioAssemblies()), MinimalTestExportProvider.CreateResolver()));
 }
Exemple #2
0
 public static IEnumerable <Assembly> GetCSharpAndVisualBasicAssemblies()
 {
     return(GetNeutralAndCSharpAndVisualBasicTypes().Select(t => t.Assembly).Distinct().Concat(MinimalTestExportProvider.GetVisualStudioAssemblies()));
 }
 /// <summary>
 /// Create fresh ComposableCatalog that doesnt share anything with others.
 /// everything under this catalog should have been created from scratch that doesnt share anything with others.
 /// </summary>
 public static ComposableCatalog CreateAssemblyCatalogWithCSharpAndVisualBasic()
 {
     return(MinimalTestExportProvider.CreateAssemblyCatalog(
                GetNeutralAndCSharpAndVisualBasicTypes().Select(t => t.Assembly).Distinct().Concat(MinimalTestExportProvider.GetVisualStudioAssemblies()),
                MinimalTestExportProvider.CreateResolver()));
 }