noober
noober

Reputation: 4938

How to create a .NET assembly with a strong name programmatically?

Is there a way to create a strong-named assembly using CSharpCodeProvider?

Upvotes: 2

Views: 2183

Answers (2)

DeCaf
DeCaf

Reputation: 6116

You could also specify the /keyfile: option in the CompilerOptions property of the CompilerParameters you send to the CSharpCodeProvider when compiling.

Upvotes: 3

Robert Beaubien
Robert Beaubien

Reputation: 3156

See SN.EXE ( http://msdn.microsoft.com/en-us/library/k5b5tt23(VS.80).aspx ). You'll have to execute that on your assembly pointing to a key file to do the signing.

Upvotes: 1

Related Questions