473,396 Members | 1,996 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Assembly Linker Question

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?

Nov 18 '05 #1
2 3152
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

"George Durzi" <gd****@hotmail.com> wrote in message
news:uX**************@TK2MSFTNGP09.phx.gbl...
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?


Nov 18 '05 #2
Your post went unanswered. Have you resolved this issue?

--
Regards,
Alvin Bruney [ASP.NET MVP]
Got tidbits? Get it here...
http://tinyurl.com/3he3b
"George Durzi" <gd****@hotmail.com> wrote in message
news:uX**************@TK2MSFTNGP09.phx.gbl...
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?


Nov 18 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: Edward Diener | last post by:
This has occurred in MC++, but since there is very little response on that NG, I am also reporting it here in the hope that someone can find me a workaround, and report it to MS. If a __value...
2
by: Mike Nau | last post by:
I've been trying to get a concrete answer to this for the last few days, but have come up short. I'm hoping someone here can help. Is there a way to take a set of c# modules (c# code compiled...
1
by: Cindy | last post by:
I'm trying to create a satellite assembly for my winform project but the resource.dll that gets created with the assembly linker (al.exe) doesn't get used when the language is specified. However,...
0
by: Nadav | last post by:
Hi, Introduction ******************** I am writing some kind pf an assembly linker, this linker should be able to work with an already compiled assembly, e.g. add several global methods, To...
0
by: Namratha Shah \(Nasha\) | last post by:
Hi All, Assembly linker is a tool which is used to create an assembly by combining one or more .netmodules and resource files. In simple words an .netmodule is an IL file that does not have ...
0
by: Edward Diener | last post by:
If a __value class with an event is put into an assembly, and a __gc class in another assembly attempts to attach its own event handler to the __value class's event of an embedded object of the...
13
by: Bern McCarty | last post by:
I have run an experiment to try to learn some things about floating point performance in managed C++. I am using Visual Studio 2003. I was hoping to get a feel for whether or not it would make...
0
by: Nadav | last post by:
Hi, Introduction ******************** I am writing some kind pf an assembly linker, this linker should be able to work with an already compiled assembly, e.g. add several global methods, To...
3
by: dfranzen | last post by:
Hi *, I'm in the process of porting an ANSI C++ project from a UNIX platform to .NET. After "getting rid of" some platform-specific stuff I managed to compile the first two libraries into mixed...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.