Assembly Linker Question

G

George Durzi

I'm trying to put an assembly into the GAC. The assembly is called
Common.Mail. I've done the following:

- Create a strong name for Common.Mail:
- From command prompt:
cd Program Files\Microsoft Visual Studio .NET 2003\SDK\v1.1\Bin
sn -k Common.Mail.snk

- Link Assembly at command line using Assembly Linker tool.
- From command prompt:
cd WINDOWS\Microsoft.NET\Framework\v1.1.4322

Having trouble with the al.exe part. The help documentation shows the
following:
al /out:<assembly name> <module name> /keyfile:<file name>

So :
al /out:Common.Mail.dll <module name> /keyfile:Common.Mail.snk

What do I put for <module name>. My project has one class called Message.cs
If I put Message.cs as module name it doesn't work..

tips?
 
B

Brian Parlier

The way I do it is:

After you execute: sn -k Common.Mail.snk

Run: sn -i Common.Mail.snk Common.Mail

This signs the assembly with the public portion of the key.

Then I use gacutil.exe -i Common.Mail.dll to install it into the gac

Good luck,
Brian Parlier
 

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

Members online

No members online now.

Forum statistics

Threads
473,969
Messages
2,570,161
Members
46,708
Latest member
SherleneF1

Latest Threads

Top