// This will load the *.netmodule on demand.
Ufo u = new Ufo();
u.AbductHuman();
Console.ReadLine();
}
}
To compile this executable assembly at the command line, you will make use of the Visual
Basic .NET command-line compiler, csc.exe, with the following command set:
csc /r:airvehicles.dll Client.cs
Notice that when you are referencing a multifile assembly, the compiler needs to be supplied
only with the name of the primary module (the *.netmodules are loaded on demand by the CLR
when used by the client’s code base). In and of themselves, *.netmodules do not have an individual
version number and cannot be directly loaded by the CLR. Individual *.netmodules can be loaded
only by the primary module (e.g., the file that contains the assembly manifest).
Do'stlaringiz bilan baham: |