Günter
Wed Aug 13 01:57:57 CDT 2003
"Mark" <maxmann@kc.rr.com> wrote in message
news:uENxn3RYDHA.3248@tk2msftngp13.phx.gbl...
> Okay, this is really a three part question. I'm trying to figure out how
> this whole GAC thing works.
>
> Here goes....
>
> 1. When should you put an assembly in the GAC as opposed to just
referencing
> the dll in a normal windows folder?
Put an assembly into the GAC if it's shared between applications.
>
> 2. When you put it in the GAC how should you reference in the project? I
> would think that you shouldn't have to reference it because it's in the
GAC,
> but it looks like you still do? If so, what's the benefit?
You must still reference the Assembly. The Compiler needs to get the
MetaData out of the referenced Assemblies.
How the Runtime Locates Assemblies:
-->
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpguide/html/cpconhowruntimelocatesassemblies.asp
Assembly Binding Log Viewer (Fuslogvw.exe)
-->
http://msdn.microsoft.com/library/en-us/cptools/html/cpgrffusionlogviewerfuslogvwexe.asp
> 3. When should you set "CopyLocal" = False in the assembly reference
> properties in VS.NET?
Normaly only if the Assembly is in GAC.
> thanks in advance.
> Mark
you're welcome, Günter