blog.easyciel.net author="Patrick Rabian" about="c#, sharepoint, biztalk, team system resources" more="news, samples, tips for .NET world's developers !"

Assembly visible under visual studio references

Tuesday, 16 May 2006 12:57 by prabian

By default, a assembly (you created) is not visible in the visual studio project’s references…even if it is in the GAC.

You can add directories to the registry to specifiy to VS where to search your assemblies :

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\.NETFramework\AssemblyFolders\MyAssemblies]
@="C:\\MyAssembliesPath\\"

To use this code :

  • Change ‘MyAssemblies’ by your contextual name.
  • Change ‘MyAssembliesPath’ by your contuextual file system path.
  • Create a .reg file, insert the code
  • …and double click.

For information, if the assembly is in the GAC, you should have a copy placed (for example) in the ‘Program Files\MyAssemblies’ directory.
So, your setup project can create this copy and auto-reference it in the registry.

 

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Related posts

Add comment


(Will show your Gravatar icon)  

  Country flag

[b][/b] - [i][/i] - [u][/u]- [quote][/quote]



Live preview

November 21. 2008 01:07