Home All Groups Group Topic Archive Search About
Author
28 Jun 2005 9:30 PM
John
Hi

I have a class dll which I would ideally like to reside in [Program
files]\[Common Files]\[My Class] folder. My question is; How are my vb.net
apps to reference and use this dll specially since the [Program
files]\[Common Files]\[My Class] folder can reside on different drives
between production and release machines.

Thanks

Regards

Author
28 Jun 2005 10:50 PM
Armin Zingler
"John" <John@nospam.infovis.co.uk> schrieb
> Hi
>
> I have a class dll which I would ideally like to reside in [Program
> files]\[Common Files]\[My Class] folder. My question is; How are my
> vb.net apps to reference and use this dll specially since the
> [Program
> files]\[Common Files]\[My Class] folder can reside on different
> drives between production and release machines.


http://msdn.microsoft.com/library/en-us/cpguide/html/cpconhowruntimelocatesassemblies.asp


BTW, the group microsoft.public.dotnet.framework.setup is probably for
questions about installing the framework, so I didn't reply to that group.

Armin
Author
28 Jun 2005 10:57 PM
John
Ahhh..but putting the dlls in gac can have issues with versioning when
installed with msie? In which case I would prefer to keep the dlls
elsewhere.

Regards

Show quoteHide quote
"Armin Zingler" <az.nospam@freenet.de> wrote in message
news:OfMTwPDfFHA.3944@TK2MSFTNGP10.phx.gbl...
> "John" <John@nospam.infovis.co.uk> schrieb
>> Hi
>>
>> I have a class dll which I would ideally like to reside in [Program
>> files]\[Common Files]\[My Class] folder. My question is; How are my
>> vb.net apps to reference and use this dll specially since the
>> [Program
>> files]\[Common Files]\[My Class] folder can reside on different
>> drives between production and release machines.
>
>
> http://msdn.microsoft.com/library/en-us/cpguide/html/cpconhowruntimelocatesassemblies.asp
>
>
> BTW, the group microsoft.public.dotnet.framework.setup is probably for
> questions about installing the framework, so I didn't reply to that group.
>
> Armin
>
Author
29 Jun 2005 12:20 AM
Armin Zingler
"John" <John@nospam.infovis.co.uk> schrieb
> Ahhh..but putting the dlls in gac can have issues with versioning
> when installed with msie? In which case I would prefer to keep the
> dlls elsewhere.

Is it the only possibility to put it into the GAC?


Armin
Author
29 Jun 2005 6:01 AM
Armin Zingler
"Armin Zingler" <az.nospam@freenet.de> schrieb
> "John" <John@nospam.infovis.co.uk> schrieb
> > Ahhh..but putting the dlls in gac can have issues with versioning
> > when installed with msie? In which case I would prefer to keep the
> > dlls elsewhere.
>
> Is it the only possibility to put it into the GAC?

Could be misunderstood. Better: Is putting it into the GAC the only
possibility? I thought there are other ways mentioned, e.g. a config file. I
didn't read it but I think it's the right chapter.

Armin
Author
29 Jun 2005 7:33 AM
John
Its probably more difficult to pick up dll if it is not in gac.

Regards

Show quoteHide quote
"Armin Zingler" <az.nospam@freenet.de> wrote in message
news:eezpyFHfFHA.1948@TK2MSFTNGP12.phx.gbl...
> "Armin Zingler" <az.nospam@freenet.de> schrieb
>> "John" <John@nospam.infovis.co.uk> schrieb
>> > Ahhh..but putting the dlls in gac can have issues with versioning
>> > when installed with msie? In which case I would prefer to keep the
>> > dlls elsewhere.
>>
>> Is it the only possibility to put it into the GAC?
>
> Could be misunderstood. Better: Is putting it into the GAC the only
> possibility? I thought there are other ways mentioned, e.g. a config file.
> I didn't read it but I think it's the right chapter.
>
> Armin
Author
29 Jun 2005 7:54 AM
Armin Zingler
"John" <John@nospam.infovis.co.uk> schrieb
> Its probably more difficult to pick up dll if it is not in gac.

I think you answered your own question:
"In which case I would prefer to keep the dlls elsewhere."

Answer:
"but putting the dlls in gac can have issues with versioning when installed
with msie?"

So, if you can't install it in the GAC (I don't know if you can), install it
elsewhere.

I can't tell you more about it. Probably the people in the appropriate
framwork group can.

Armin



Show quoteHide quote
> Regards
>
> "Armin Zingler" <az.nospam@freenet.de> wrote in message
> news:eezpyFHfFHA.1948@TK2MSFTNGP12.phx.gbl...
> > "Armin Zingler" <az.nospam@freenet.de> schrieb
> > > "John" <John@nospam.infovis.co.uk> schrieb
> > > > Ahhh..but putting the dlls in gac can have issues with
> > > > versioning when installed with msie? In which case I would
> > > > prefer to keep the dlls elsewhere.
> > >
> > > Is it the only possibility to put it into the GAC?
> >
> > Could be misunderstood. Better: Is putting it into the GAC the
> > only possibility? I thought there are other ways mentioned, e.g. a
> > config file. I didn't read it but I think it's the right chapter.
> >
> > Armin
>
>
Author
30 Jun 2005 6:55 AM
stand__sure
the installer should take of placement for you.  as for directly
referencing in code (should there be a need), you can reference
relative to your current directory --  I use
Environment.CurrentDirectory for this during the loading of the main
form (there may be issues with using it later, but I have not tested
this).  You can also use Reflection to get the Location or CodeBase for
the Assembly (it is my understanding that this can be a bit expensive
memory-wise, which is why I use the other approach.  This approach
should be durable though)