I'm trying to deploy an assembly in GAC, I did that successfully using Gacutil.exe
utility.
我试图在GAC中部署一个程序集,我使用Gacutil成功地实现了这一点。exe实用程序。
Now, when I try to add a reference for it from Visual Studio - Add Reference - .Net
tab, I don't find it!!
现在,当我尝试为它添加一个来自Visual Studio的引用-添加引用-。net标签时,我找不到它!
Any help!
任何帮助!
2 个解决方案
#1
4
I had this problem, the GAC'ed dlls arent included in the references.
我有这个问题,参考文献中没有包括GAC'ed dll。
Check out this post I made: Add Reference in Framework 4 Application is not showing assemblies in GAC registered with GACUtil V 4
查看我写的这篇文章:在框架4中添加引用,在GAC中没有显示在GACUtil v4中注册的程序集
To make things easier, the link to the msdn article: http://msdn.microsoft.com/en-us/library/wkze6zky(VS.100).aspx
为了让事情变得更简单,链接到msdn的文章:http://msdn.microsoft.com/en-us/library/wkze6zky(VS.100).aspx。
And to paraphrase, create an entry along the lines of the following: [HKEY_CURRENT_USER\SOFTWARE\Microsoft.NETFramework\v4.0.30319\AssemblyFoldersEx\MyMagicAssemblies] and then set the (Default) value to be a string with the value being the path you want searched. Look at your registry for examples of how this is set up (so the default value becomes: c:\dlls\
然后,按照下面的代码来创建一个条目:[HKEY_CURRENT_USER\ Microsoft.NETFramework\v4.0.30319\ yfoldersex \ mymagic],然后将(默认)值设置为一个字符串,值为您想要搜索的路径。查看注册表以了解如何设置它(因此默认值变为:c:\dll \ \)
v4.0.30319 would be replaced with the framework version you want the dlls to show up against.
v4.0.30319将会被你想要的框架版本所取代。
because your dlls are in the GAC it will use those as the actual reference and not the files you are showing in the reference list. Only if the version number of the dlls are different will it use your local version.
因为您的dll在GAC中,所以它将使用它们作为实际的引用,而不是您在引用列表中显示的文件。只有当dll的版本号不同时,它才会使用您的本地版本。
#2
1
I've created a sexy visual studio extension that will help you to achieve your goal. Muse VSReferences will allow you to add a Global Assembly Cache reference to the project from Add GAC Reference menu item.
我创建了一个性感的visual studio扩展,可以帮助你实现你的目标。Muse vsreference将允许您添加一个全局程序集缓存引用,从添加GAC引用菜单项到项目。
Regards...
问候……
Muse Extensions
缪斯的扩展
#1
4
I had this problem, the GAC'ed dlls arent included in the references.
我有这个问题,参考文献中没有包括GAC'ed dll。
Check out this post I made: Add Reference in Framework 4 Application is not showing assemblies in GAC registered with GACUtil V 4
查看我写的这篇文章:在框架4中添加引用,在GAC中没有显示在GACUtil v4中注册的程序集
To make things easier, the link to the msdn article: http://msdn.microsoft.com/en-us/library/wkze6zky(VS.100).aspx
为了让事情变得更简单,链接到msdn的文章:http://msdn.microsoft.com/en-us/library/wkze6zky(VS.100).aspx。
And to paraphrase, create an entry along the lines of the following: [HKEY_CURRENT_USER\SOFTWARE\Microsoft.NETFramework\v4.0.30319\AssemblyFoldersEx\MyMagicAssemblies] and then set the (Default) value to be a string with the value being the path you want searched. Look at your registry for examples of how this is set up (so the default value becomes: c:\dlls\
然后,按照下面的代码来创建一个条目:[HKEY_CURRENT_USER\ Microsoft.NETFramework\v4.0.30319\ yfoldersex \ mymagic],然后将(默认)值设置为一个字符串,值为您想要搜索的路径。查看注册表以了解如何设置它(因此默认值变为:c:\dll \ \)
v4.0.30319 would be replaced with the framework version you want the dlls to show up against.
v4.0.30319将会被你想要的框架版本所取代。
because your dlls are in the GAC it will use those as the actual reference and not the files you are showing in the reference list. Only if the version number of the dlls are different will it use your local version.
因为您的dll在GAC中,所以它将使用它们作为实际的引用,而不是您在引用列表中显示的文件。只有当dll的版本号不同时,它才会使用您的本地版本。
#2
1
I've created a sexy visual studio extension that will help you to achieve your goal. Muse VSReferences will allow you to add a Global Assembly Cache reference to the project from Add GAC Reference menu item.
我创建了一个性感的visual studio扩展,可以帮助你实现你的目标。Muse vsreference将允许您添加一个全局程序集缓存引用,从添加GAC引用菜单项到项目。
Regards...
问候……
Muse Extensions
缪斯的扩展