Strong Name

M

Michael Voss

Hello!

I have to sign my assembly (WinForms C# 1.1) with a string name.
Unfortulately, I'm forced to reference another assembly (no COMInterop
Wrapper) not being signed with a strong name. This results in an compiler
error preventing my assembly from being build. I cannot influence anything
on the creation of the referenced assembly; all I have is a managed dll.

Is there any chance to sign my assembly; if so, how ?
 
G

Guest

The following assumes you are working with a copy of your dll, so if
something goes wrong you still have the original to try again.

You can sign assemblies at the command line using the following tool:

signtool.exe sign /n "Your Company Code Signing" /t
http://timestamp.verisign.com/scripts/timstamp.dll yourlib.dll

Use the VS2005 CMD prompt so it will be in the path. At least, this is how I
do it with .NET 2.0. The previous tools:

signcode -cn "Your Company Code Signing" yourlib.dll -t
http://timestamp.verisign.com/scripts/timstamp.dll

Either way, the timestamp piece is very important. If you don't use the
timestamp, the signing still works. The problems start when the certificate
expires and you didn't use the timestamp, and yes, all certifcates I've
worked with expire.

HTH:
Randy
 
M

Michael Voss

I said:
I have to sign my assembly (WinForms C# 1.1) with a string name.
OOOPS! Typo! --------------------------------------------^
Should've been "strong" ;-)
 

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