How can I call shared Assembly?

loyal

Well-known member
Joined
Jul 29, 2003
Messages
102
Hi all

I made a shared Assembly that contain a class library called myClass

And a sub called myMethod it has a Msg.box("whatever")

After registered it

I have a project called calling my Class

Now how can I call myClass Assembly and use myMethod

in calling my Class project ?
 
hi

its not defined when I use the Imports keyword it does not

appear with system and microsoft and etc namesapces

look I genrate a strong name for assembly

and register that key into AssimblyInfo like this

<Assembly: AssemblyKeyFile("C:/gacClass.snk")>

but I left the version at it was

<Assembly: AssemblyVersion("1.0.*")>

then I used the gacutil to Install it into GAC

and I found it there

is this correct ?
 
In fact I tried to reference it but it coudnt found by add Reference

and I found it into the Assembly Folder

anyway thanks in advance
 
Go to Add Reference and then press the Browse button on the top right and just find your DLL in the dialog that pops up.
 
thanks work has done successfuly :p

but I added it from bin folder not from Assembly folder


is this correct ? :rolleyes:
 
As suggested in this thread, if you need to include reference to your shared dll from the bin directory , what is the idea of registering it in the GAC. If some other application needs to use this dll , from where it would reference.
 
I found this thread from a Google search -- Im having this exact same problem and I cant figure out whats going on.

I signed and added an Assembly to the GAC as instructed, and I see it in C:\Windows\assembly, but for some reason it doesnt show up in the .NET tab of the Add Reference window in Visual Studio. How do I get it to show up there? I want to be able to reference it from other projects without having to browse to its actual location -- otherwise, I have no reason to even make it shared.
 
Back
Top