public virtual List <string> GetAssemblies(PluginDeployConfig plugin) { var file = plugin.assemblypath; List <string> assemblies; var extension = Path.GetExtension(file); if (extension == "") { file = Path.Combine(file, "*.dll"); } assemblies = ServiceLocator.DirectoryService.Search(this.filePath, file); return(assemblies); }
public static List <string> GetAssemblies(ConfigFile config, PluginDeployConfig plugin) { var assemblyPath = Path.Combine(config.filePath, plugin.assemblypath); List <string> assemblies; var extension = Path.GetExtension(assemblyPath); if (extension == "") { assemblyPath = Path.Combine(assemblyPath, "*.dll"); } var path = Path.GetDirectoryName(assemblyPath); var file = Path.GetFileName(assemblyPath); assemblies = DirectoryEx.Search(path, file, null); return(assemblies); }