X509Certificate2 ct = new X509Certificate2(sertFilePath, sertPassword /*, X509KeyStorageFlags.MachineKeySett*/); ApplicationManifest am = ManifestReader.ReadManifest("ApplicationManifest", sPathMftApp, false) as ApplicationManifest; am.ResolveFiles(); am.UpdateFileInfo(); ManifestWriter.WriteManifest(am, sPathMftApp); SecurityUtilities.SignFile(ct, null, sPathMftApp); DeployManifest dm = ManifestReader.ReadManifest("DeployManifest", sPathMftDepl, false) as DeployManifest; dm.DeploymentUrl = newDeplUrl; dm.ResolveFiles(); dm.UpdateFileInfo(); ManifestWriter.WriteManifest(dm, sPathMftDepl); SecurityUtilities.SignFile(ct, null, sPathMftDepl); }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)