How to use shared assembly in asp.net 2005 application
-
Hi, I have used Class library using C# ASP.NET2005 and created a public-private key using Sn -k myfile.snk syntax. I have signed in the key to the class library created and had builded it. I have added the dll to the GAC using gacutil /i myclasslib.dll The dll is successfully added to cache. Now, 1.How to include the shared myclasslib.dll to my new asp.net c# application? 2.Does the myfile(strongname) created can be used for sharing more than one dlls? 3.If so then how can the stron name can uniquely identify the assembly? 4.Does the c# dll can be used in vb.net windows application? Thanks,
zari
-
Hi, I have used Class library using C# ASP.NET2005 and created a public-private key using Sn -k myfile.snk syntax. I have signed in the key to the class library created and had builded it. I have added the dll to the GAC using gacutil /i myclasslib.dll The dll is successfully added to cache. Now, 1.How to include the shared myclasslib.dll to my new asp.net c# application? 2.Does the myfile(strongname) created can be used for sharing more than one dlls? 3.If so then how can the stron name can uniquely identify the assembly? 4.Does the c# dll can be used in vb.net windows application? Thanks,
zari
zareee wrote:
1.How to include the shared myclasslib.dll to my new asp.net c# application?
If your assembly is added to Global Assembly Cache, then you can add reference to it.
zareee wrote:
4.Does the c# dll can be used in vb.net windows application?
Yes you can use that. It will be in MSIL ( Microsoft Intermediate Language ) format. It doesn't care about C# or VB.NET.
-
zareee wrote:
1.How to include the shared myclasslib.dll to my new asp.net c# application?
If your assembly is added to Global Assembly Cache, then you can add reference to it.
zareee wrote:
4.Does the c# dll can be used in vb.net windows application?
Yes you can use that. It will be in MSIL ( Microsoft Intermediate Language ) format. It doesn't care about C# or VB.NET.