Visual Studio Outlook插件获取System.Data.sqlite.dll的计算哈希与清单中指定的不同

发布于 2025-02-13 17:55:38 字数 231 浏览 0 评论 0原文

我们在outlookAddin.vsto文件中安装插件时,我们在遇到错误

”输入图像在这里说明“

we have created outlook plugin based project in Visual studio, when we installing plugin with OutlookAddin.vsto file while we are getting an error

enter image description here

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

若相惜即相离 2025-02-20 17:55:38

system.data.sqlite.dll具有与清单

指定的计算哈希

此问题的原因是“ system.data.sqlite.dll”,在重新签名可执行您的可执行文件后,获得了新的哈希。 data.sqlite.dll“与清单中指定的哈希相同。

要解决此问题,您需要使用 mage.exe> mage.exe

您还可以尝试以下解决方案,在此解决方案可以在afterCompile目标中签名。您可以在最终项目关闭标签之前使用以下元素(请参阅项目的内容)。

<Target Name="AfterCompile" Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
  <Exec Command=""C:\Program Files (x86)\Microsoft SDKs\Windows\v7.1A\Bin\signtool.exe" sign /f "C:\temp\myPFX.pfx" /p "admin" /v "$(ProjectDir)obj\$(ConfigurationName)\$(TargetFileName)"" />
</Target>

Windows 8和Clickonce:重新访问的确定答案文章。

system.data.SQLite.dll has a different computed hash than specified in manifest

The reason for this problem is the file "system.data.SQLite.dll" get the new hash after you re-sign your executable, this cause "system.data.SQLite.dll" have a different hash than specified in the manifest.

To resolve this problem, you need to update or regenerate the application manifest using mage.exe.

You can also try below solution where you could sign the executable in the AfterCompile target. You can use the following element before the final project close tag (see your project's content).

<Target Name="AfterCompile" Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
  <Exec Command=""C:\Program Files (x86)\Microsoft SDKs\Windows\v7.1A\Bin\signtool.exe" sign /f "C:\temp\myPFX.pfx" /p "admin" /v "$(ProjectDir)obj\$(ConfigurationName)\$(TargetFileName)"" />
</Target>

Read more about that in the Windows 8 and ClickOnce : the definitive answer revisited article.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文