Exemplo n.º 1
0
        public VersionFile GetVersionInfo(VersionInfo build)
        {
            if (!Configured())
            {
                return(null);
            }
            if (!File.Exists(_repoDir + @"\xmls\Version_" + _platform + "_" + build.Build + ".xml"))
            {
                return(null);
            }

            var fileinfo = new VersionFile();

            fileinfo.Load(_repoDir + @"\xmls\Version_" + _platform + "_" + build.Build + ".xml");
            return(fileinfo);
        }
Exemplo n.º 2
0
        public VersionFile GetVersionInfo(VersionInfo build)
        {
            if (!Configured())
            {
                return(null);
            }

            if (!DownloadFile(_repository + @"/Download/" + _platform + @"/" + build.Build + @"/Version", "Version_" + _platform + "_" + build.Build + ".xml"))
            {
                return(null);
            }

            var fileinfo = new VersionFile();

            fileinfo.Load(_tempDirectory + @"\Version_" + _platform + "_" + build.Build + ".xml");
            Log("Get Version Info : Build : " + build.Build);
            return(fileinfo);
        }
Exemplo n.º 3
0
        public bool UpdateVersionDescription(VersionInfo build, string description)
        {
            if (!Configured())
            {
                return(false);
            }
            if (!File.Exists(_repoDir + @"\xmls\Version_" + _platform + "_" + build.Build + ".xml"))
            {
                return(false);
            }

            var fileinfo = new VersionFile();

            fileinfo.Load(_repoDir + @"\xmls\Version_" + _platform + "_" + build.Build + ".xml");
            fileinfo.Description = description;
            fileinfo.Save(_repoDir + @"\xmls\Version_" + _platform + "_" + build.Build + ".xml");

            return(true);
        }