Re: Deploying with My DLLs
- From: "Alberto Poblacion" <earthling-quitaestoparacontestar@xxxxxxxxxxxxx>
- Date: Sat, 30 Aug 2008 08:54:13 +0200
"jp2msft" <jp2msft@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message news:194FB8CC-F32C-480B-AD73-20937E6FAD0B@xxxxxxxxxxxxxxxx
I've created some DLLs for our projects, and I would like each project to
access the same DLLs.
In my Setup and Deployment project, after I add the primary output, I can
easily add the dependant DLL files.
As long as I keep the DLL files in the same directory as the primary output,
everything is roses (good).
If I try to create common folder or copy them to a Program Files > Common
Folder subfolder of mine, the DLLs can not be found after I install and try
to execute my application.
How do I tell setup that my primary output should look for its DLLs in some
other folder?
The "standard" way of creating shared DLLs in .Net is to install them to the GAC (Global Assembly Cache).
In order to be able to install the DLLs to the GAC, you first have to give them a Strong Name. This is well documented in various places, so a simple search will quickly tell you how to do this.
On your development workstation you can test the DLLs by dragging and dropping them to c:\windows\assembly using Windows Explorer. This installs the DLLs to the GAC, and you can verify that your various programs can use those DLLs from any folder.
In your Setup Project in Visual Studio, in the File System Editor, choose the option "Add Special Folder", select "Global Assembly Cache", and add there your DLLs. This will deploy the DLLs to the GAC when running Setup in the target machine.
.
- Prev by Date: Re: Print Documents PrintDocument-- what am I doing wrong? Must be something stupid
- Next by Date: WhatsNew
- Previous by thread: Passing multiple files to an application
- Next by thread: WhatsNew
- Index(es):
Relevant Pages
|