473,396 Members | 2,037 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.

Combining modules with the Assembly Linker

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 using csc
with the /t:module option) and combine them into a single assembly
using the assembly linker or any other tool.

For example I have the following compiled c# modules:
foo1.netmodule
foo2.netmodule

I'd like to link them into a single .net assembly named foolinked.dll.

I have tried

al foo1.netmodule foo2.netmodule /target:library /out:foolinked.dll

This created foolinked.dll but when I explore it with ildasm, it only
contains the assembly manifest and points to foo1.netmodule and
foo2.netmodule.

Any help would be greatly appreciated.

Thanks,
Mike.
Jul 21 '05 #1
2 6638
Mike,

What you described is the expected result from the assembly linker. What you
created is a multi-file assembly that is made up of foolinked.dll,
foo1.netmodule and foo2.netmodule. When you deploy the DLL you must also
deploy the netmodule files as well.

As an aside this is the only way to create an assembly that contains code
from different languages.

I don't think there's any way to use the assembly linker to build a
single-file assembly from netmodules.

--
Rob Windsor [MVP-VB]
G6 Consulting
Toronto, Canada
"Mike Nau" <mi******@yahoo.com> wrote in message
news:b8**************************@posting.google.c om...
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 using csc
with the /t:module option) and combine them into a single assembly
using the assembly linker or any other tool.

For example I have the following compiled c# modules:
foo1.netmodule
foo2.netmodule

I'd like to link them into a single .net assembly named foolinked.dll.

I have tried

al foo1.netmodule foo2.netmodule /target:library /out:foolinked.dll

This created foolinked.dll but when I explore it with ildasm, it only
contains the assembly manifest and points to foo1.netmodule and
foo2.netmodule.

Any help would be greatly appreciated.

Thanks,
Mike.

Jul 21 '05 #2
AL does not merge files together, rather it inserts a
reference into the assembly.

You will have to use 3rd party tool to physically merge
modules/assemblies together. We offer such a tool,
http://www.remotesoft.com/linker, which can link/merge
files together, it can also link framework DLLs into your
own assembly.

Since we don't have trial version yet, you can send your
files to se*****@remotesoft.com, and the linked file will
be sent back to you for evaluation.

Huihong

-----Original Message-----
I've been trying to get a concrete answer to this for the last fewdays, 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 using cscwith the /t:module option) and combine them into a single assemblyusing the assembly linker or any other tool.

For example I have the following compiled c# modules:
foo1.netmodule
foo2.netmodule

I'd like to link them into a single .net assembly named foolinked.dll.
I have tried

al foo1.netmodule foo2.netmodule /target:library /out:foolinked.dll
This created foolinked.dll but when I explore it with ildasm, it onlycontains the assembly manifest and points to foo1.netmodule andfoo2.netmodule.

Any help would be greatly appreciated.

Thanks,
Mike.
.

Jul 21 '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...
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,...
5
by: Ben R. | last post by:
Hello, I’m in the process of reading "Inside Microsft .NET IL Assembler" by Serge Lidin to gain a better understanding of my .NET code at a lower (IL) level. There is one concept that I am...
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...
1
by: pontifikas | last post by:
How difficult is it to have a project which contains portions of, say, C# and C++(or VB)? Can this be done? What are the general rules for doing such thing? *-----------------------* Posted at:...
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...
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...
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...
1
by: Mark Asbach | last post by:
Hi pythonians, I'm one of the maintainers of an open source image processing toolkit (OpenCV) and responsible for parts of the autotools setup. The package mainly consists of four shared...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
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
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

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.