Assembly key file vs. key NAME?

J

Jon Davis

I'm strong-naming my nice big project now, never done this before...

I understand (I think) that for creating a strong name key file, the
assembly key file would be @"\..\..\myAssembly.snk"

What's the key NAME all about?

And why does the AssemblyInfo file have

[assembly: AssemblyDelaySign(true/false)]
[assembly: AssemblyKeyFile("...")]
[assembly: AssemblyKeyName("...")]

... but the documentation says to use ..

[assembly:AssemblyKeyFileAttribute("...")]

?

Thanks,
Jon
 
M

Mattias Sjögren

Jon,
I understand (I think) that for creating a strong name key file, the
assembly key file would be @"\..\..\myAssembly.snk"

What's the key NAME all about?

It's used if you have a named key stored in a key container. If you
don't know what that is, you probably don't have it. :)

You use either AssemblyKeyFile or AssemblyKeyName, not both.



Mattias
 
J

Jon Davis

You use either AssemblyKeyFile or AssemblyKeyName, not both.

Ah! So then I leave it there as blank?

Jon
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top