473,383 Members | 1,863 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,383 software developers and data experts.

assembly isn't listed

Neo
Hi,

I added an assembly to GAC and would like to reference it.However, it wasn't
listed in the "Add Reference" window. I still had to locate it from file.
Could someone tell how to let the assembly listed in the "Add Reference"
window?
Any points would be appreciated.
Neo

Nov 18 '05 #1
3 1256
You will need to add a key to your registry.

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\VisualStudio \7.1\AssemblyFolders

I am using 2003, so the 7.1 is 7.1, but see what you have in your registry.

Add a key called MyAssembly. And for the default value, give it the path of
your assemblies. (not the gac, but probably where you imported them from.)

The .net framework checks the GAC first when loading assemblies, so you have
nothing left to worry about.

HTH,

bill
"Neo" <ne******@hotmail.com> wrote in message
news:e9**************@TK2MSFTNGP09.phx.gbl...
Hi,

I added an assembly to GAC and would like to reference it.However, it wasn't listed in the "Add Reference" window. I still had to locate it from file.
Could someone tell how to let the assembly listed in the "Add Reference"
window?
Any points would be appreciated.
Neo


Nov 18 '05 #2
Neo
Hi William F. Robertson, Jr.

Thank you for your reply.
I found a key "PublicAssemblies" in
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\VisualStudio \7.1\AssemblyFolders.
PublicAssemblies key shows a path of folder. Copy assembly to that folder
and the assembly will appear in the "Add Reference" dialog box.
However there are some assemblies other than MS's in the "Add Reference"
dialog box, but they are neither in registry nor in PublicAssemblies
folder. I was wondering how they made it.
Thanks.

Neo
"William F. Robertson, Jr." <wfrobertson_at_kpmg_dot_com> wrote in message
news:OB**************@tk2msftngp13.phx.gbl...
You will need to add a key to your registry.

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\VisualStudio \7.1\AssemblyFolders

I am using 2003, so the 7.1 is 7.1, but see what you have in your registry.
Add a key called MyAssembly. And for the default value, give it the path of your assemblies. (not the gac, but probably where you imported them from.)
The .net framework checks the GAC first when loading assemblies, so you have nothing left to worry about.

HTH,

bill
"Neo" <ne******@hotmail.com> wrote in message
news:e9**************@TK2MSFTNGP09.phx.gbl...
Hi,

I added an assembly to GAC and would like to reference it.However, it

wasn't
listed in the "Add Reference" window. I still had to locate it from file. Could someone tell how to let the assembly listed in the "Add Reference"
window?
Any points would be appreciated.
Neo



Nov 18 '05 #3
I believe they have a special case for the .net assemblies and some third
party vendors.

I think you are missing something about the registry. Here is my
PublicAssemblies registry export.

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\VisualStudio \7.1\AssemblyFolders]
@=""

*****This is key that I added. All the assemblies I put in c:\program
files\dascweb are listed
*****in the add references dialog box.
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\VisualStudio \7.1\AssemblyFolders\Dasc
web]
@="c:\\program files\\dascweb\\"

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\VisualStudio \7.1\AssemblyFolders\Prim
ary Interop Assemblies]
@="C:\\Program Files\\Microsoft.NET\\Primary Interop Assemblies\\"

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\VisualStudio \7.1\AssemblyFolders\Publ
icAssemblies]
@="C:\\Program Files\\Microsoft Visual Studio .NET
2003\\Common7\\IDE\\PublicAssemblies"

"Neo" <ne******@hotmail.com> wrote in message
news:uf**************@TK2MSFTNGP12.phx.gbl...
Hi William F. Robertson, Jr.

Thank you for your reply.
I found a key "PublicAssemblies" in
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\VisualStudio \7.1\AssemblyFolders.
PublicAssemblies key shows a path of folder. Copy assembly to that folder
and the assembly will appear in the "Add Reference" dialog box.
However there are some assemblies other than MS's in the "Add Reference"
dialog box, but they are neither in registry nor in PublicAssemblies
folder. I was wondering how they made it.
Thanks.

Neo
"William F. Robertson, Jr." <wfrobertson_at_kpmg_dot_com> wrote in message
news:OB**************@tk2msftngp13.phx.gbl...
You will need to add a key to your registry.

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\VisualStudio \7.1\AssemblyFolders

I am using 2003, so the 7.1 is 7.1, but see what you have in your registry.

Add a key called MyAssembly. And for the default value, give it the path of
your assemblies. (not the gac, but probably where you imported them

from.)

The .net framework checks the GAC first when loading assemblies, so you

have
nothing left to worry about.

HTH,

bill
"Neo" <ne******@hotmail.com> wrote in message
news:e9**************@TK2MSFTNGP09.phx.gbl...
Hi,

I added an assembly to GAC and would like to reference it.However, it

wasn't
listed in the "Add Reference" window. I still had to locate it from

file. Could someone tell how to let the assembly listed in the "Add Reference" window?
Any points would be appreciated.
Neo




Nov 18 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: Chris Fink | last post by:
I just installed my assembly to the GAC using the GACUTIL and I can see it in the winnt\assembly folder. However, I am unable to see the assembly when I import it into the project in the using...
4
by: V. Jenks | last post by:
I'm using reflection to dynamically load an assembly and even though I'm sure the assembly is present, I keep getting an error telling me the "assembly or one of its references can't be found". ...
11
by: Brett | last post by:
I have an assembly on a shared LAN drive. On my developer machine, I give that assembly full trust from the .NET wizard. It works fine. I go to a user machine on the LAN, map to the shared...
5
by: Luis Arvayo | last post by:
When I load an assembly at runtime, that is to say, a plugin DLL through Assembly.Load, an old version of the assembly is loaded. If I recompile the DLL and then copy the result to where the...
5
by: Diffident | last post by:
Hello All, I am trying to add an assembly to GAC but having difficult time figuring out the concept of GAC. This is what I am trying to do.... 1. Installed NUnit framework whose DLL...
2
by: Rob R. Ainscough | last post by:
I tried the following and it does provide a GUID, but not the GUID listed in the My Project ... Assembly Info button. Dim myAss As myAss = .GetEntryAssembly Dim myAssGUID As System.Guid =...
1
by: Tony Johansson | last post by:
Hello! If I select a private assembly in ILDASM I get a lot of information listed but if I select a shared assembly located at c:\window\assembly(GAC) I get nothing listed. So is this normal...
85
by: fermineutron | last post by:
Some compilers support __asm{ } statement which allows integration of C and raw assembly code. A while back I asked a question about such syntax and was told that __asm is not a part of a C...
14
by: Monty | last post by:
Hello, I have created a solution which has both a web UI and a winform UI, the latter is just for administrators. The Web UI (a Web Application Project) and the winform project both...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.