[Mono-list] Sample compilation problem
   
    Stelian Iancu
     
    stelian.iancu@gmx.net
       
    24 Jan 2003 08:39:31 +0200
    
    
  
Hi!
I just build the helloworld example using Gtk#. If I compile it via
comand line, with 
mcs hw.cs -r gtk-sharp.dll
everything is fine and the program gets compiled. However, when I use
NAnt for compiling, I get an error that it can't find the type
DeleteEventArgs. Here is the hw.build file I am using:
<?xml version="1.0" encoding="iso-8859-1"?>
<project name="hw" default="build">
	<property name="debug" value="true"/>
	
	<target name="build">
		<mcs target="exe" output="hw.exe" debug="${debug}">
			<sources basedir="src">
				<includes name="hw.cs"/>
			</sources>
			<references>
				<includes name="gtk-sharp.dll"/>
			</references>
		</mcs>
	</target>
	
	<target name="clean">
		<delete file="hw.exe" failonerror="false"/>
	</target>
</project>
I thought that the <reference> tag is similar with the -r option of
mcs.I also tried by putting /usr/local/lib/gtk-sharp.dll, but it was the
same thing. Also, I am using NAnt that comes with mcs 0.19. 
Please help me out!
Thanks!
-- 
Regards,
Stelian I.