PC Review


Reply
Thread Tools Rate Thread

Combining modules with the Assembly Linker

 
 
Mike Nau
Guest
Posts: n/a
 
      11th Feb 2004
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.
 
Reply With Quote
 
 
 
 
Rob Windsor [MVP]
Guest
Posts: n/a
 
      11th Feb 2004
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" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> 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.



 
Reply With Quote
 
Huihong
Guest
Posts: n/a
 
      11th Feb 2004
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 (E-Mail Removed), 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 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.
>.
>

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Satellite Assemblies using the Assembly Linker Cindy Microsoft Dot NET 1 22nd Nov 2004 03:03 PM
Article : Assembly Linker (Al.exe .Net FrameWork Tools Series) Namratha Shah \(Nasha\) Microsoft Dot NET Framework 0 3rd Nov 2004 07:28 AM
Why do I get this linker error in an assembly Ralf Jablonski Microsoft VC .NET 2 15th Mar 2004 04:09 PM
Assembly Linker Question George Durzi Microsoft ASP .NET 2 2nd Mar 2004 06:22 AM
Assembly linker could not be launched?!??! Help please! James Microsoft Dot NET 2 31st Dec 2003 05:38 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 09:37 PM.