Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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?

share|improve this question

1 Answer 1

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.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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