I'm trying to automate assembly generation from netmodules. I tried to use "al.exe" tool with this commande line : al module1.netmodule module2.netmodule /target:library /out:assembly.dll. My problem is that my assembly does not embed my netmodules but only references them : - if I open my assembly with "ildasm.exe" tool, I can only see the manifest - if I import my assembly in a new Visual Studio project, it does not work unless I copy the two netmodules beside the assembly
I tried the "ILMerge" tool, it seems to work fine on my simple example : the "ildasm.exe" tool shows the right classes and the assembly can be used in a Visual Studio project. But there are limitations (WPF) I fear to face further in my project.
My questions are : - Is there a way to produce an independant assembly from netmodules using "al.exe" or "csc.exe" ? - How to really embed netmodules into an assembly and not only reference them ? - Do I have to use "ILMerge.exe" ? - What is the real use of "al.exe" ? Can't "csc.exe" do the same using the "/addmodule" option ?