install assembly in GAC

G

Guest

i create a project and sign it with strong name then i build it into an
assembly as a dll file.
after these i use "gacutil /i assembly.dll" command in command line to
install the assembly and it told me the installation was successful, and i
did find the assemly.dll in c:\windows\assembly, it seems that everything
goes well.

when i wantted to reference this assmebly in project, i can't find it in the
".NET" tab of the "Add Reference" window. Didn't i install the assembly
correctly?
 
N

Nicholas Paldino [.NET/C# MVP]

Yes, you did. However, the dialog for adding assemblies is not
dependent on what is in the GAC. Rather, you have to set up some registry
entries to tell Visual Studio where to look. The following KB article
explains what you have to do:

http://msdn2.microsoft.com/en-us/library/wkze6zky(VS.80).aspx

Look at the section titled "To display an assembly in the Add Reference
dialog box". It will tell you what you have to do.

Hope this helps.
 
G

Guest

thank you Nich
i've read the article and made it work by copying my assmebly into "C:\.NET\
Common7\IDE\PublicAssemblies\",
but his third way by adding registry keys did not wrok so i can only copy my
assmebly to a centain directory but using my own directory.

anyway, now i can see the assembly in the ".NET" tab, although still a few
problems left, thank u a lot
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top