コード例 #1
0
ファイル: Program.cs プロジェクト: jeremytammik/Dynamo
        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);
        }