我创建了一个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中向项目添加引用(已签名的程序集)
发布评论