internal PublishPage(string deploymentPath) { this.DeploymentDir = new DirectoryInfo(deploymentPath); var infos = this.DeploymentDir.GetFiles("*.cltw"); var mgr = new ManifestManager(string.Empty, deploymentPath, InformationSource.AppManifest); var manifest = mgr.CreateAppManifest(); this.Manifest = manifest; AppLauncher = DeploymentDir.GetFiles("*.application").First(); if (Manifest.FrameworkVersion == null) { Manifest.FrameworkVersion = new Version(4, 5); } }
public LaunchPage(string deploymentPath, string outputFileName) { var fi = new DirectoryInfo(deploymentPath).GetFiles("*.cltw").FirstOrDefault(); if (fi == null) { var mgr = new ManifestManager(string.Empty, deploymentPath, InformationSource.AppManifest); var manifest = mgr.CreateAppManifest(); this.Manifest = manifest; } else { Manifest = ManifestManager.ReadFromFile(fi.FullName); } this.DeploymentDir = new DirectoryInfo(deploymentPath); AppLauncher = DeploymentDir.GetFiles("*.application").First(); if (Manifest.FrameworkVersion == null) { Manifest.FrameworkVersion = new Version(4, 5); } this.Model = new LaunchPageModel(Manifest); this.OutputFileName = outputFileName; }