Try adding this code to the top of the assembly where the rest of the
'.extern's should be
.assembly extern System.Data
{
.publickeytoken = (B7 7A 5C 56 19 34 E0 89 )
// .z\V.4..
.ver 1:0:5000:0
}
Or you could use ildasm to look at an already compiled assembly and just
copy what you see there.
HTH
Chris
> -----Original Message-----
> From: Pradeep Tapadiya [mailto:[EMAIL PROTECTED]
> Sent: Thursday, 5 February 2004 4:54 AM
> To: [EMAIL PROTECTED]
> Subject: [ADVANCED-DOTNET] Specifying reference assemblies
> for ilasm.exe
>
>
> .NETters,
>
> I am trying to compile some IL code that calls methods from
> System.Data.DLL and some other assemblies. When the code is
> compiled used ilasm.exe, it complains "Undefined assembly ref
> 'System.Data'.' I don't see any command line option on
> ilasm.exe to specify reference assemblies. Is there some
> pragma I must use in the source code?
>
> Thank you in advance for your help.
>
> Pradeep
>
> ===================================
> This list is hosted by DevelopMentor(r) http://www.develop.com
> Some .NET courses you may be interested in:
>
> NEW! Guerrilla ASP.NET, 26 Jan 2004, in Los Angeles
> http://www.develop.com/courses/gaspdotnetls
>
> View archives
> and manage your subscription(s) at http://discuss.develop.com
>
===================================
This list is hosted by DevelopMentor� http://www.develop.com
Some .NET courses you may be interested in:
NEW! Guerrilla ASP.NET, 26 Jan 2004, in Los Angeles
http://www.develop.com/courses/gaspdotnetls
View archives and manage your subscription(s) at http://discuss.develop.com