Re: Deployment Question
From: Phill. W (P.A.Ward_at_o-p-e-n-.-a-c-.-u-k)
Date: 02/01/05
- Next message: Kevin Spencer: "Re: Deployment Question"
- Previous message: Gawel: "Generated method names"
- In reply to: Dave M.: "Deployment Question"
- Next in thread: Kevin Spencer: "Re: Deployment Question"
- Messages sorted by: [ date ] [ thread ]
Date: Tue, 1 Feb 2005 13:21:06 -0000
"Dave M." <nospam@ihatesmap.com> wrote in message
news:uzvjaS%23BFHA.3596@TK2MSFTNGP12.phx.gbl...
> I have one solution that has a number of .DLLs, and 2 applications that
> use those core DLLs. When I try to build a deployment package for
> my applications, I figured it was a good idea to put the .DLLs
> in the system folder and just share them between the two applications.
First problem. The .Net Framework /does not/ search the DOS
path to locate DLL's; it has its own wierd[er] and [more] wonderful
"Rules" for working things out.
> If I keep the .dll in the Application Folder, the application works.
That's one way of making it work; the much lauded "XCopy"
deployment method. The application can find anything in its own
directory. Many people see this as a perfectly good deployment
strategy, with every application having its own copy of any shared
assemblies.
Suffice to say, I don't.
> I tried different ways of registering (None, COM, Relative)
The one you've missed is putting it into the Global Assembly Cache,
or GAC. This seems to be .Net's version of the Registry as far as
locating assemblies is concerned. Adding your assembly into the
GAC makes is accessible anywhere on the machine (i.e. from any
application - Security Permissions .. er .. permitting).
> It seems silly to have the .dlls in 2 places, especially for updating
> purposes.
I agree, although deploying the file as part of each application does
have the singular advantage that you can [supposedly] update the
Dll while the application is still running; it will simply "reload" the
new Dll as and when it needs to. Assemblies loaded into the GAC
are /not/ picked up until the application is restarted.
HTH,
Phill W.
- Next message: Kevin Spencer: "Re: Deployment Question"
- Previous message: Gawel: "Generated method names"
- In reply to: Dave M.: "Deployment Question"
- Next in thread: Kevin Spencer: "Re: Deployment Question"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|