无法在.Net Framework 2.0中向项目添加引用(已签名的程序集) [英] Not able to add reference(signed assembly) to project in .Net Framework 2.0

查看:113
本文介绍了无法在.Net Framework 2.0中向项目添加引用(已签名的程序集)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我创建了一个ClassLibrary(ClassLibrary1.dll),使用sn.exe对其进行签名并安装在GAC中。
它在C:\ Windows \Assembly文件夹中可见。请参考以下链接获取截图。

http://imgur.com/a/oOmaJ [< a href =http://imgur.com/a/oOmaJtarget =_ blanktitle =New Window> ^ ]



我创建了另一个项目,我想在其中使用存储在GAC中的已签名程序集。但我无法添加参考。我正在使用.Net Framework 2.0。此方案在.net 4.0中运行正常,其中dll存储在C:\ Windows \ Microsoft.Net\ GAC_MSIL \中。


在链接 http://imgur.com/tqEOTvC [ ^ ] dll在GAC中可见,但是当我尝试在添加引用时添加相同的路径时,它给出了错误链接 http://imgur.com/pZlloES [ ^ ]


有人可以帮我解决这个问题。我无法弄清楚这是否是.Net版本问题或其他问题。


I have created one ClassLibrary(ClassLibrary1.dll), signed it using sn.exe and installed in GAC.
It's visible in C:\Windows\Assembly folder. please refer below link for screenshot.
http://imgur.com/a/oOmaJ[^]

I have created another project in which I want to use this signed assembly stored in GAC. but I am unable to add reference. I am using .Net Framework 2.0. This scenario is working fine in .net 4.0 where dll is stored in C:\Windows\Microsoft .Net\GAC_MSIL\.

In the link http://imgur.com/tqEOTvC[^] the dll is visible in GAC , but when I try to put the same path while adding the reference it gives the error shown in the link http://imgur.com/pZlloES[^]

Can someone help me with this issue. I amnot able to figure out whether this is a .Net version issue or something else.


推荐答案

这篇关于无法在.Net Framework 2.0中向项目添加引用(已签名的程序集)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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