Hello!

Assume I have this simple program below. Here I use another assembly when
calling Console.WriteLine(...);
The code for this method WriteLine is located in another Assembly which is
mscorlib.dll
Now to my question in the assembly which is created for this program is
there a reference
to the assembly mscorlib.dll ?
More precise in the assemblies manifest is the reference to the assembly
mscorlib.dll.

static void main(string[] args)
{ Console.WriteLine("Hello"); }

//Tony

Re: References to other assemblies by Alberto

Alberto
Thu Aug 28 06:26:11 CDT 2008

"Tony Johansson" <johansson.andersson@telia.com> wrote in message
news:OEz3FRPCJHA.1628@TK2MSFTNGP03.phx.gbl...
> Assume I have this simple program below. Here I use another assembly when
> calling Console.WriteLine(...);
> The code for this method WriteLine is located in another Assembly which is
> mscorlib.dll
> Now to my question in the assembly which is created for this program is
> there a reference
> to the assembly mscorlib.dll ?

Yes, there is. If you use ILDASM to examine your assembly, as I suggested in
another message, you can open the MANIFEST node and you will find a
reference similar to this one:

.assembly extern mscorlib
{
.publickeytoken = (B7 7A 5C 56 19 34 E0 89 )
.ver 2:0:0:0
}


Re: References to other assemblies by Ignacio

Ignacio
Thu Aug 28 08:40:18 CDT 2008

On Aug 28, 6:08=A0am, "Tony Johansson" <johansson.anders...@telia.com>
wrote:
> Hello!
>
> Assume I have this simple program below. Here I use another assembly when
> calling Console.WriteLine(...);
> The code for this method WriteLine is located in another Assembly which i=
s
> mscorlib.dll
> Now to my question in the assembly which is created for this program is
> there a reference
> to the assembly mscorlib.dll ?
> More precise in the assemblies manifest is the reference to the assembly
> mscorlib.dll.
>
> static void main(string[] args)
> { Console.WriteLine("Hello"); }
>
> //Tony

Of course, each assembly store which assemblies it needs to be loaded
in order to run