无法在.Net Framework 2.0中向项目添加引用(已签名的程序集)

编程入门 行业动态 更新时间:2024-10-26 17:21:35
本文介绍了无法在.Net Framework 2.0中向项目添加引用(已签名的程序集)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我创建了一个ClassLibrary(ClassLibrary1.dll),使用sn.exe对其进行签名并安装在GAC中。 它在C:\ Windows \Assembly文件夹中可见。请参考以下链接获取截图。 imgur/a/oOmaJ [ ^ ] 我创建了另一个项目,我想在其中使用存储在GAC中的已签名程序集。但我无法添加参考。我正在使用.Net Framework 2.0。此方案在 4.0中运行正常,其中dll存储在C:\ Windows \ Microsoft.Net\ GAC_MSIL \中。 在链接 imgur/tqEOTvC [ ^ ] dll在GAC中可见,但是当我尝试在添加引用时添加相同的路径时,它给出了错误链接 imgur/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. imgur/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 4.0 where dll is stored in C:\Windows\Microsoft .Net\GAC_MSIL\. In the link imgur/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 imgur/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中向项目添加引用(已签名的程序集)

本文发布于:2023-11-09 23:12:39,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1573699.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:中向   程序   项目   Net   Framework

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!