Wednesday, March 28, 2012

what is the ".netmodule"

in this command line to create a strong name, what is the ".netmodule", and
how do I create/get one ?
al /out:MyAssembly.dll MyModule.netmodule /keyfile:sgKey.snkA .netmodule is a "raw" module. I don't believe Visual Studio will let
you create a raw module but you could create one with command line
tools (csc with the /t:module option).
A raw module can't be deployed by itself, it has to be associated with
an assembly, which is what the assembly linker (al.exe) does. I get
the feeling you might not need to use al.exe, do you just need to
strong name an assembly? Are you using VS.NET?
Scott
http://www.OdeToCode.com/blogs/scott/
On Fri, 29 Oct 2004 12:42:24 -0700, "TJS" <nospam@.here.com> wrote:

>in this command line to create a strong name, what is the ".netmodule", an
d
>how do I create/get one ?
>
>al /out:MyAssembly.dll MyModule.netmodule /keyfile:sgKey.snk
>
yes, I am trying to strong name an assembly and I don't use VS
"Scott Allen" <bitmask@.[nospam].fred.net> wrote in message
news:bgb7o0h2fgecahqjd35566t2t1eujbmdnb@.
4ax.com...
>A .netmodule is a "raw" module. I don't believe Visual Studio will let
> you create a raw module but you could create one with command line
> tools (csc with the /t:module option).
> A raw module can't be deployed by itself, it has to be associated with
> an assembly, which is what the assembly linker (al.exe) does. I get
> the feeling you might not need to use al.exe, do you just need to
> strong name an assembly? Are you using VS.NET?
> --
> Scott
> http://www.OdeToCode.com/blogs/scott/
> On Fri, 29 Oct 2004 12:42:24 -0700, "TJS" <nospam@.here.com> wrote:
>
>
Hi TJS:
You could let the compiler string name the assembly by putting an
attribute into a source code file:
[assembly:AssemblyKeyFileAttribute(@."<key file name>")]
If you don't want to do this at compile time, you can delay sign:
[assembly:AssemblyKeyFileAttribute(@."<key file name>")]
[assembly:AssemblyDelaySignAttribute(tru
e)]
The compiler still needs the key file name to at least insert the
public key into the assembly. Later you can do the actualy strong name
signing using sn.exe with the -R switch.
Scott
http://www.OdeToCode.com/blogs/scott/
On Sat, 30 Oct 2004 12:31:43 -0700, "TJS" <nospam@.here.com> wrote:

>yes, I am trying to strong name an assembly and I don't use VS
>
>"Scott Allen" <bitmask@.[nospam].fred.net> wrote in message
> news:bgb7o0h2fgecahqjd35566t2t1eujbmdnb@.
4ax.com...
>

0 comments:

Post a Comment