Re: Using Custom Assembly Installed in GAC
From: Chris Fink (ChrisFink_at_discussions.microsoft.com)
Date: 11/01/04
- Next message: TJS: "Re: reference a dll in codebehind without VS"
- Previous message: Ken Cox [Microsoft MVP]: "Re: "stream" a PDF?"
- In reply to: Ken Cox [Microsoft MVP]: "Re: Using Custom Assembly Installed in GAC"
- Next in thread: Chris Fink: "Re: Using Custom Assembly Installed in GAC"
- Reply: Chris Fink: "Re: Using Custom Assembly Installed in GAC"
- Reply: Ken Cox [Microsoft MVP]: "Re: Using Custom Assembly Installed in GAC"
- Messages sorted by: [ date ] [ thread ]
Date: Mon, 1 Nov 2004 10:24:03 -0800
Hi Scott,
If I take your approach of placing the shared assembly in the applications
bin folder should I set the copy local=false? I assume that if this is set
to true, the assembly in the bin folder will be executed regardless of
whether or not it is in the GAC.
Second, how does the application determine whether to use the local assembly
or one from the GAC? I assume the GAC always has priority, ifso, how do you
allow the app to use the one in bin over the GAC, if assemblies exist in both
locations.
Thanks for your help!
"Ken Cox [Microsoft MVP]" wrote:
> Hi Chris,
>
> Hi Chris,
>
> You can add a copy of the DLL to another location on your system and
> reference it from there to keep you code happy and give you Intellisense
> support. I often put it in the /bin folder. If there's a version in the GAC,
> the executable will use the GAC copy at runtime.
>
> Regarding the use of gacutil, I would suspect Microsoft is trying to tell
> you to use Windows Installer technology to put production components in the
> GAC.
>
> Ken
> Microsoft MVP [ASP.NET]
>
> "Chris Fink" <ChrisFink@discussions.microsoft.com> wrote in message
> news:926C8963-7794-42CF-933F-969C294E89FA@microsoft.com...
> > Using the GacUtil I created a SNK and deployed my assembly to the GAC
> > using
> > the GACUTIL. When browsing to c:\[SystemRoot]\Assembly I can see my
> > custom
> > assembly. However, how do I use it in a new project? I don't see it
> > listed
> > as a component in the .NET Add reference section?
> >
> > Also, why does MS say that the GacUtil is for development only? What do
> > they
> > recommend using when moving production components to the gac?
>
>
- Next message: TJS: "Re: reference a dll in codebehind without VS"
- Previous message: Ken Cox [Microsoft MVP]: "Re: "stream" a PDF?"
- In reply to: Ken Cox [Microsoft MVP]: "Re: Using Custom Assembly Installed in GAC"
- Next in thread: Chris Fink: "Re: Using Custom Assembly Installed in GAC"
- Reply: Chris Fink: "Re: Using Custom Assembly Installed in GAC"
- Reply: Ken Cox [Microsoft MVP]: "Re: Using Custom Assembly Installed in GAC"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|