Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Best way to deploy a developer component?
Message
Information générale
Forum:
ASP.NET
Catégorie:
Déploiements
Divers
Thread ID:
00751718
Message ID:
00752559
Vues:
15
>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform