>Thanks for your help Bob!
>
>One question, how do you reference (in VS.Net) an assembly if it is installed in the GAC? From the component list I can't browse the GAC or the things that are installed in it. Would I have to install the assembly in the GAC and also put the assembly DLL's in a common folder? Thanks again!!
When you build the assembly, you would need to reference the .DLL to the compiler, if you are using VS, all you need is a file reference to your DLL. At runtime the assembly will look in the GAC for the component.
How do you do it mechanically? In VS when you have your project open right click on the References folder, choose 'Add reference...'. When the dialog comes up press browse and find the DLL. This will create a reference to the .DLL and put it in the manifest.
At run time (JIT Compile) the compiler will look in the GAC for your DLL automatically.
Yes, you have to install the shared DLL into the GAC once. Once it is installed all your apps can use it. You use the gacutil command line tool to do this.
BOb
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only