Пример #1
0
        public static DynamoInstallSpec CreateFromPath(string binPath)
        {
            var spec = new DynamoInstallSpec()
            {
                DynamoVersion = DynamoCoreVersion.FromPath(binPath)
            };

            var dir = new DirectoryInfo(spec.DynamoVersion.BaseDirectory);

            spec.Modules = spec.GetModules(dir).ToList();
            return(spec);
        }
Пример #2
0
        public static DynamoInstallSpec CreateFromPath(string binPath, string corefile, IEnumerable <string> additionalFilePaths)
        {
            var spec = new DynamoInstallSpec()
            {
                DynamoVersion = DynamoCoreVersion.FromPath(binPath, corefile)
            };

            var dir = new DirectoryInfo(spec.DynamoVersion.BaseDirectory);

            spec.Modules = spec.GetModules(dir).ToList();
            spec.Modules.AddRange(spec.GetModules(additionalFilePaths));
            return(spec);
        }