VSTO 加载项:清单中的引用与下载的程序集的标识不匹配
VSTO add-in: Reference in the manifest does not match the identity of the downloaded assembly
我在 C# 中为 Excel 开发了一个 VSTO 插件作为 Class 库。该加载项以第三方 .exe 作为参考。加载项的唯一目的是利用引用的 .exe 的功能。
我现在尝试使用 ClickOnce 发布加载项。当我尝试安装加载项时,出现错误:清单中的引用与下载程序集的标识不匹配 ThridParty.exe
在网上寻找解决方案很多人建议如下:
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.
See: Error deploying ClickOnce application - Reference in the manifest does not match the identity of the downloaded assembly
我是 VSTO 和 C# 开发的新手,但据我了解,上面提供的解决方案仅在我的输出类型是应用程序时才有效。我在网上找到的许多其他解决方案也是如此。
有人可以解释我如何使用第三方引用的 .exe 文件发布我的加载项吗?
如果有人遇到同样的情况,我是这样解决问题的:
我认为错误与我发布 VSTO .dll 有关。原来问题出在抛出错误的 .exe 上。幸运的是,第三方 .exe 是开源的,所以我能够下载源代码并使用 "Create application without manifest" 选项重建和发布它。
这解决了问题。当我添加新的 .exe 并通过 ClickOnce 发布我的 VSTO .dll 时,一切都很顺利。
问题是为什么会这样。这是一个错误,还是有发生这种情况的原因?好像很多人都有同样的问题。
我在 C# 中为 Excel 开发了一个 VSTO 插件作为 Class 库。该加载项以第三方 .exe 作为参考。加载项的唯一目的是利用引用的 .exe 的功能。
我现在尝试使用 ClickOnce 发布加载项。当我尝试安装加载项时,出现错误:清单中的引用与下载程序集的标识不匹配 ThridParty.exe
在网上寻找解决方案很多人建议如下:
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. See: Error deploying ClickOnce application - Reference in the manifest does not match the identity of the downloaded assembly
我是 VSTO 和 C# 开发的新手,但据我了解,上面提供的解决方案仅在我的输出类型是应用程序时才有效。我在网上找到的许多其他解决方案也是如此。
有人可以解释我如何使用第三方引用的 .exe 文件发布我的加载项吗?
如果有人遇到同样的情况,我是这样解决问题的:
我认为错误与我发布 VSTO .dll 有关。原来问题出在抛出错误的 .exe 上。幸运的是,第三方 .exe 是开源的,所以我能够下载源代码并使用 "Create application without manifest" 选项重建和发布它。
这解决了问题。当我添加新的 .exe 并通过 ClickOnce 发布我的 VSTO .dll 时,一切都很顺利。
问题是为什么会这样。这是一个错误,还是有发生这种情况的原因?好像很多人都有同样的问题。