I have created strong name using -

sn -k C:\strong.snk

nao how to assign this key to any assembly? and where I have to use gacutil?

link|improve this question
1  
This belongs on stackoverflow.com, doesn't it? – Jens Jul 1 '10 at 13:24
feedback

1 Answer

If you are compiling C# code you can use the /keyfile option to the compiler on the command line, like this:

csc.exe /keyfile:strong.snk /out:My.exe File.cs

Or if you are using Visual Studio you can set the strong name key in the project settings on the "Signing" tab check the "Sign the assembly" option and specify the key file.

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.