Re: How to register .NET Dlls
- From: "Vadym Stetsyak" <vadym_s@xxxxxxx>
- Date: Mon, 5 Dec 2005 14:00:32 +0200
In order to sign your assemly you can use assembly attributes, usually
defined in AssemblyInfo.cs.
The attributes will look like
[assembly: AssemblyKeyFile(@"C:\Snk\MyCustAssembly.snk")]
[assembly: AssemblyKeyName("MyCustAssembly")]
After build your assembly will be "signed" and can be placed in the GAC
--
Vadym Stetsyak aka Vadmyst
http://vadmyst.blogspot.com
"Roby Eisenbraun Martins" <RobyEisenbraunMartins@xxxxxxxxxxxxxxxxxxxxxxxxx>
wrote in message news:7C3A9A34-5F88-40A5-AAFB-401D70C8A42F@xxxxxxxxxxxxxxxx
> I can generate a key file using sn.exe, but when I try to execute
> gacutul
> I receive an error message asking for the "strong name". How can i tie the
> dlls with the strong "name"?
>
> "Vadym Stetsyak" wrote:
>
>> Yes, you can register them in the GAC. In order to do that you'll need to
>> have sign your assemblies (dlls), using key generated by sn.exe tool.
>> Then in the client machine you perfrm gacutil -i your.dll. Your assembly
>> is
>> in the GAC, and anyone have access it using type name.
>>
>> --
>> Vadym Stetsyak aka Vadmyst
>> http://vadmyst.blogspot.com
>>
>> "Roby Eisenbraun Martins"
>> <RobyEisenbraunMartins@xxxxxxxxxxxxxxxxxxxxxxxxx>
>> wrote in message
>> news:74A89CD3-5351-47B2-A3F7-27F4849B6580@xxxxxxxxxxxxxxxx
>> > Hi,
>> > I'm trying to register my Dlls in the client machine without using
>> > any
>> > deployment package. I tried copying all the files and Dlls to a
>> > specified
>> > folder and run, but then the application crashes.
>> > Do I have to use some tool like "regsvr32.exe" or "gacutil.exe" to
>> > registry the Dlls in the client machine?
>> >
>> > Thank you,
>> > Roby Eisenbraun Martins
>>
>>
>>
.
- References:
- Re: How to register .NET Dlls
- From: Vadym Stetsyak
- Re: How to register .NET Dlls
- Prev by Date: Clickonce: show publish version
- Next by Date: Re: Clickonce: show publish version
- Previous by thread: Re: How to register .NET Dlls
- Next by thread: Re: How to register .NET Dlls
- Index(es):
Relevant Pages
|