S
scayze
Hello all,
I'm writing a program that first uses csc.exe to compile C# files into
a netmodule, which works fine. The resulting fileis 72 KB in size. Next
it uses al.exe to link the netmodule to an assembly and add strong
naming and resources. Below is a simplified example of the command I
use:
al /keyfile:myKey.snk /version:1.0.* /embed:myResource.resx /t:lib
/out:myDLL.dll myModule.netmodule
I was wanting the result to be a strong-named assembly with all the
contents of the netmodule, plus resources. Instead, the assembly
generated is 5 KB in size. When I use ildasm.exe to analyze the
assembly and it's manifest, there are just external references to types
that refer to the .netmodule, but no actual type information.
I know about other tools such as sn.exe for strong naming and dynamic
assemblies to emit the information, but I just don't know the best
approach. Can anyone tell me how to take a module and add strong naming
and resources to it? Or, how does Visual Studio do it?
Thanks in advance,
Shannon
I'm writing a program that first uses csc.exe to compile C# files into
a netmodule, which works fine. The resulting fileis 72 KB in size. Next
it uses al.exe to link the netmodule to an assembly and add strong
naming and resources. Below is a simplified example of the command I
use:
al /keyfile:myKey.snk /version:1.0.* /embed:myResource.resx /t:lib
/out:myDLL.dll myModule.netmodule
I was wanting the result to be a strong-named assembly with all the
contents of the netmodule, plus resources. Instead, the assembly
generated is 5 KB in size. When I use ildasm.exe to analyze the
assembly and it's manifest, there are just external references to types
that refer to the .netmodule, but no actual type information.
I know about other tools such as sn.exe for strong naming and dynamic
assemblies to emit the information, but I just don't know the best
approach. Can anyone tell me how to take a module and add strong naming
and resources to it? Or, how does Visual Studio do it?
Thanks in advance,
Shannon