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.