原文:
public static ListBaiqianAssemblies { get { var list = new List (); var deps = DependencyContext.Default; var libs = deps.CompileLibraries.Where(lib => !lib.Serviceable && lib.Type != "package" && lib.Name.StartsWith("Baiqian")); foreach (var lib in libs) { var assembly = AssemblyLoadContext.Default.LoadFromAssemblyName(new AssemblyName(lib.Name)); list.Add(assembly); } return list; } }
posted on 2019-06-19 00:43 阅读( ...) 评论( ...)