开发者

Can't see an assembly in add reference dialog box after installing it in gac

开发者 https://www.devze.com 2023-01-18 07:59 出处:网络
I have created a shared assemby MyLibray version 1.0.0.1 and installed it in gac. Again I created MyLibrary version 1.0.0.2 and installed it in gac.

I have created a shared assemby MyLibray version 1.0.0.1 and installed it in gac. Again I created MyLibrary version 1.0.0.2 and installed it in gac.

See the gac screen shot.

Can't see an assembly in add reference dialog box after installing it in gac

But in Add Referen开发者_运维百科ce dialog box only older version 1.0.0.1 is available. See the screenshot.

Can't see an assembly in add reference dialog box after installing it in gac


Visual Studio will not display two assemblies of same name even if the version of the assemblies are different. If you want multiple versions of the same assembly to appear in the Visual Studio list of installed assemblies, provide a different name for each version of the assembly, like in your case MyLibrary.1.0.0.1.dll and MyLibrary.1.0.0.2.dll.

EDIT: One more way of adding same name assemblies to the dialog box is by placing the assemblies in two separate folders and adding those folders to HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\.NETFramework\AssemblyFolders key.


Nadeem

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.

Can't see an assembly in add reference dialog box after installing it in gac

Regards...

Muse Extensions

0

精彩评论

暂无评论...
验证码 换一张
取 消