强签名的装配 [英] Strong Signed Assemblies

查看:329
本文介绍了强签名的装配的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个我在Visual Basic 2008 Express中的项目。我从别人的C#项目转换它,但它的工作原理。它有几个DLL依赖。我去发布我的项目,所以我可以安装在另一台机器上,对于每个DLL,我得到一个错误:大会必须强签名为了标记为先决条件。我做了一些研究,但没有找到很多,我发现我不真正理解。这个错误是什么意思?什么是最好的解决方法?另一件事:我花了很长时间才能得到我所有的dll的正确引用,所以我更喜欢这个解决方案没有移动DLL,因为这可能会破坏我的主项目的功能。 p>

I have a project I made in Visual Basic 2008 Express. I converted it from someone else's C# project, but it works. It has several DLL dependencies. I went to publish my project so I can install it on another machine and for each DLL, I get an error: "Assembly must be strong signed in order to be marked as a prerequisite." I've done some research, but am not finding a lot and what I have found I don't really understand. What does this error mean? What is the best way to resolve it? One other thing: it took me a LONG time to be able to get all my dll's to reference correctly, so I prefer that the solution has NOTHING to do with moving DLL's around because that will likely break the functionality in my main project.

推荐答案

如果您通过ClickOnce发布,请转到发布页面,然后单击应用程序文件。从那里你应该看到你的DLL的列表。确保发生问题的邮件的发布状态标记为包含而不是先决条件。

If you're publishing via ClickOnce, go to the publish page and click on "Application Files". From there you should see a list of your DLL's. Ensure that the ones that are giving you trouble have their Publish Status marked as "Include" rather than "Prerequisite".

此错误消息意味着当前发布设置将期望所有有问题的程序集在目标机器上的全局程序集缓存中存在,然后才能进行安装。由于GAC中的所有程序集都必须是强签名的,因此任何标记为未强签署的先决条件的程序集都会产生此错误。

What this error message means is that the current publishing settings are going to expect all of the assemblies in question to be present in the Global Assembly Cache on the target machine before installation can take place. Since all assemblies in the GAC must be strong signed, any assembly marked as a prerequisite that isn't strong signed will give you this error.

这篇关于强签名的装配的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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