Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

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 ?

Gary Says: To be a good programmer, you must be good at debugging
Posted

hi

 

it's 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 ?

Gary Says: To be a good programmer, you must be good at debugging
Posted

In fact I tried to reference it but it coudn't found by add Reference

 

and I found it into the Assembly Folder

 

anyway thanks in advance

Gary Says: To be a good programmer, you must be good at debugging
Posted

thanks work has done successfuly :p

 

but I added it from bin folder not from Assembly folder

 

 

is this correct ? :rolleyes:

Gary Says: To be a good programmer, you must be good at debugging
Posted
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.
  • 2 months later...
Posted

I found this thread from a Google search -- I'm having this exact same problem and I can't figure out what's 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 doesn't 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.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...