Exemplo n.º 1
0
        public string[] GetLocalPackageFilePathsForProject(string packagePath)
        {
            var projectPath = GetProjectPath(packagePath);

            if (! ProjectExistsInCache(projectPath))
            {
                var helper = new SsisDbHelper(_serverName);

                var archive = helper.GetProjectArchiveFromServer(projectPath.Folder, projectPath.Project);
                ExpandProjectArchiveToLocalCache(packagePath, archive);
            }
            
            var cachePath = GetProjectCachePath(projectPath);
            return Directory.GetFiles(cachePath, "*.dtsx");
        }
Exemplo n.º 2
0
        public string[] GetLocalPackageFilePathsForProject(string packagePath)
        {
            var projectPath = GetProjectPath(packagePath);

            if (!ProjectExistsInCache(projectPath))
            {
                var helper = new SsisDbHelper(_serverName);

                var archive = helper.GetProjectArchiveFromServer(projectPath.Folder, projectPath.Project);
                ExpandProjectArchiveToLocalCache(packagePath, archive);
            }

            var cachePath = GetProjectCachePath(projectPath);

            return(Directory.GetFiles(cachePath, "*.dtsx"));
        }