private static bool IsCandidateLibrary(ILibraryManager libraryManager, Library library) { if (library.Dependencies.Any(d => d.Contains("ExtCore.Infrastructure"))) return true; return false; }
public void AddLibrary(Library library) { if (AdditionalLibraries.Any(lib => lib.Name == library.Name)) return; AdditionalLibraries.Add(library); }
private IEnumerable<IPlugin> GetPluginsFromLibrary(Library library) { foreach (var assemblyName in library.Assemblies) { TypeInfo item; try { var assembly = Assembly.Load(assemblyName); item = assembly.DefinedTypes.FirstOrDefault(t => typeof(IPlugin).IsAssignableFrom(t) && !t.IsAbstract && !t.IsGenericType); } catch { yield break; } if (item != null) { var plugin = CreatePluginInstance(item); if (plugin != null) yield return plugin; } } }
private bool IsCandidateLibrary(Library library) { return !_codeGenerationFrameworkAssemblies.Contains(library.Name); }
private static IEnumerable<AssemblyName> GetAssemblyNames(Library l) { return l.Assemblies.Where(asm => !asm.Name.StartsWith("Microsoft") && !asm.Name.StartsWith("System")); }
private bool IsCandidateLibrary(Library library) { Debug.Assert(ReferenceAssemblies != null); return !ReferenceAssemblies.Contains(library.Name); }
private bool IsCandidateLibrary(Library library) { return !ReferenceAssemblies.Contains(library.Name); }