[Mono-list] ILASM /reference:
Jackson Harper
jackson@latitudegeo.com
Mon, 15 Sep 2003 07:26:58 -0700
Hello,
.assembly extern foo { } is all you need. ilasm doesn't actually need to
find the assembly when it is compiling it simply outputs the metadat. So
you could reference a method like this:
[mscorlib]System.Console::ThisDoesntExist ()
and ilasm couldnt care less. If you are going to reference an assembly
with a dash in the name use single quotes:
.assembly extern 'gtk-sharp' { }
Inside of the braces you can also specify the assembly version, and
hash.
.assembly extern mscorlib {
.ver 1:0:0:0
}
Cheers,
Jackson
On Mon, 2003-09-15 at 02:20, Chris Seaton wrote:
> How do I do the equivalent of MCS's /reference: in ILASM? Is using a
> .assembly directive enough instead? If so, where does ILASM search for
> those assemblies (no search paths on the command line)?