如何不签署 ClickOnce 清单 [英] How to not sign a ClickOnce manifest

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

问题描述

我有一个 Office 2007(特别是 Outlook 2007) 添加在 Visual Studio 2008 中创建.

I have an Office 2007 (specifically Outlook 2007) add in created in Visual Studio 2008.

当我取消选中签署 ClickOnce 清单"选项然后发布时,它会自动重新选中该选项.

When I uncheck the "Sign the ClickOnce manifests" option, and then publish, it rechecks that option automatically.

我在同一个解决方案中有一个常规的 Windows Forms 项目,它允许我发布这未选中.

I have a regular Windows Forms project in the same solution that allows me to publish with this unchecked.

为什么它不允许我取消选中签名选项?

Why isn't it allowing me to uncheck the sign option?

推荐答案

您不需要对 EXE 文件进行签名,但需要对 DLL 文件进行签名以进行部署.您的 Office 加载项采用 DLL 文件的形式,因此必须对其进行签名.您的 Windows 窗体项目链接到一个 EXE 文件中,因此不需要对其进行签名.

You are not required to sign EXE files, but you need to sign DLL files for deployment. Your Office add-in is in the form of a DLL file, so it must be signed. Your Windows Forms project is linked into an EXE file, hence it does not need to be signed.

请参阅相关的 MSDN 页面,使用 Visual Studio 项目设计器的签名页面进行 ClickOnce 清单签名和强名称程序集签名,子部分 签名程序集.

See the relevant MSDN page, ClickOnce Manifest Signing and Strong-Name Assembly Signing Using Visual Studio Project Designer's Signing Page, sub section Signing Assemblies.

这篇关于如何不签署 ClickOnce 清单的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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