更改ClickOnce应用程序中的部署提供程序代码库,而不重新构建它

本文关键字:新构建 构建 应用程序 ClickOnce 部署 代码 程序 更改 | 更新日期: 2023-09-27 18:04:50

是否可以在ClickOnce *中更改deploymentprovider代码库位置?不重新构建安装程序的应用程序配置文件?

当前我得到以下异常:

    System.Deployment.Application.InvalidDeploymentException (SignatureValidation)
    - Manifest XML signature is not valid.
    - Source: System.Deployment
    - Stack trace:
        at System.Deployment.Application.Manifest.AssemblyManifest.ValidateSignature(Stream s)
        at System.Deployment.Application.ManifestReader.FromDocument(String localPath, ManifestType manifestType, Uri sourceUri)
    --- Inner Exception ---
    System.Security.Cryptography.CryptographicException
    - The digital signature of the object did not verify.
    - Source: System.Deployment
    - Stack trace:
        at System.Deployment.Internal.CodeSigning.SignedCmiManifest.Verify(CmiManifestVerifyFlags verifyFlags)
        at System.Deployment.Application.Manifest.AssemblyManifest.ValidateSignature(Stream s)

更改ClickOnce应用程序中的部署提供程序代码库,而不重新构建它

是的,这是可能的!您可以使用MageUI.exe或Mage.exe (cmd行工具)修改该文件。如果您使用mage,那么mage可以处理许多需要发生的细节,以确保所有文件处于一致的状态。这里有一个关于mage的一般链接,这里还有一个专门讨论部署提供程序的链接(参见设置和更改部署提供程序一节)