コード例 #1
0
        public void LoadFromFile(string fileName)
        {
            XmlSerializer xs = new XmlSerializer(typeof(DeploymentManifest));

            using (FileStream fs = File.Open(fileName, FileMode.Open))
            {
                DeploymentManifest fileDM = (DeploymentManifest)xs.Deserialize(fs);
                this.Files = fileDM.Files;
            }
        }
コード例 #2
0
        public void LoadFromUrl(string url)
        {
            XmlSerializer xs = new XmlSerializer(typeof(DeploymentManifest));

            XmlTextReader reader = new XmlTextReader(url);

            DeploymentManifest fileDM = (DeploymentManifest)xs.Deserialize(reader);

            this.Files = fileDM.Files;
        }
コード例 #3
0
        public void TestBuildDeploymentManifest(string deploymentPath)
        {
            DeploymentManifest dm1 = new DeploymentManifest();

            // Add files here
            // Second part needs to be remote file name

            dm1.Files.Add(DeploymentFile.CreateFromFile(@"D:\TS\C-DentalClaimTracker\bin\Release\DentalClaimTracker.exe",
                                                        deploymentPath));

            dm1.Save(DeploymentManifestFilePath);

            DeploymentManifest dm2 = new DeploymentManifest();

            dm2.LoadFromFile(DeploymentManifestFilePath);
        }