问题 Reference in the manifest does not match the identity of the downloaded assembly 解决方案汇总

WPF程序以ClickOnce发布的时候,遇到问题:

Reference in the manifest does not match the identity of the downloaded assembly

搜索若干方案,未凑效,整理如下:

1,In project properties -> Application tab -> Resources -> checkbox Icon and manifest, the setting "Embed manifest with default settings" caused the problem. Setting it to "Create application without a manifest" fixes the problem.

2,The resolution would be to manually edit the csproj file and remove all entries of "<Prefer32Bit>true</Prefer32Bit>" element or change its value to false like <Prefer32Bit>false</Prefer32Bit>

3,On Visual Studio 2008 onwards, by default it embeds manifest information into assemblies. Hence, the resolution is to include /nowin32manifest while building your application. Another approach would be to exclude the embedded manifest file after building the application. In order to do that please open Visual Studio IDE and Open the executable file from the menu (File—>Open—>File)

以上方式为通用方式,但是还为解决本项目问题,采用递增方式提交各个change(之前大量功能未提交,均为local change),通过一次次提交,最终锁定问题根源:

Root Cause:WPF程序引用的其中一个项目也为Windows Application,

Sulution: 因直接更改项目类型会出现新问题, 故拷贝项目至另外目录,重新创建class library项目,将类等都搬迁至新项目。

 

【参考】

1, https://blogs.msdn.microsoft.com/smondal/2012/02/28/reference-in-the-manifest-does-not-match-the-identity-of-the-downloaded-assembly-2/

2,https://code.i-harness.com/en/q/517172

  • 1
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值