清单的MSBuild Click-Once问题 [英] MSBuild Click-Once issues with manifest

查看:89
本文介绍了清单的MSBuild Click-Once问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我使用MSBuild发布ClickOnce应用程序时,出现以下错误.我有一个预发布任务,该任务会在发布之前将正确的app.config文件复制到项目中,这是我认为可能导致此错误的唯一原因.我该如何纠正?

I am getting the following error when I publish my ClickOnce application with MSBuild. I have a pre-publish task which copys the correct app.config file into the project before the publish and this is the only thing that I think could be causing this error. How can I correct this?

以下是失败消息 检测到:文件, MyApplication.exe.config,有一个 计算出的哈希值与指定的值不同 在清单中.

Following failure messages were detected: File, MyApplication.exe.config, has a different computed hash than specified in manifest.

推荐答案

您正在在生成哈希值之后复制文件.

You're copying the file after the hash is generated.

您需要在构建期间和发布之前复制文件. ClickOnce机制认为正在进行篡改.

You need to copy the file during BUILD and before PUBLISH. The ClickOnce mechanism thinks there is tampering going on.

这篇关于清单的MSBuild Click-Once问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆