Exemple #1
0
        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);
        }
Exemple #2
0
        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);
        }