[Mono-list] .exe filename with multiple .cs files

Ricardo Markiewicz Ricardo Markiewicz <gazer.arg@gmail.com>
Fri, 8 Oct 2004 12:25:49 -0300


you need to pass "-o program.exe" to mcs to specify the output file.

bye!

On Fri, 8 Oct 2004 17:43:52 +0530, Harsh Busa <harsh.busa@gmail.com> wrote:
> hello all
> 
> i m  learning C# with mono. pretty novice. i was trying example 2 on
> http://msdn.microsoft.com/library/en-us/csref/html/vcwlksimplepropertiestutorial.asp
> [C # tutorial -> Properties ]
> 
> briefly speaking it has these files are compiled into a single
> compilation but in this tutorial, each file is compiled individually
> and its resulting assembly referenced by the next compilation:
> 
> abstractshape.cs: The Shape class that contains an abstract Area property.
> shapes.cs: The subclasses of the Shape class.
> shapetest.cs: A test program to display the areas of some
> Shape-derived objects.  [ this has the main ]
> 
> when compiled with mcs abstractshape.cs shapes.cs shapetest.cs [ mono
> c# compiler 1.1.1.0 ] it gives me abstractshape.exe [ basically the
> first argument ]
> 
> while when compiled with MS Visual C# compiler 7.00.9466  it correcty
> gives me shapetest.exe irresptive of the order in which i specify the
> files .
> 
> i dont know if it is supposed to be this way or is there anything
> irregular with mono c# compiler
> 
> please enlighten
> Harsh
> 
> --
> __________________________
> http://www.ebackend.com/blog
> _______________________________________________
> Mono-list maillist  -  Mono-list@lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-list
>