[Mono-list] MCS hello world?

Erik Dasque edasque@ximian.com
Mon, 10 May 2004 18:01:36 -0400


--Apple-Mail-14-692597519
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain;
	charset=ISO-8859-1;
	format=flowed

Jacques,

we have some issues on the installer you downloaded and a new version=20
up there that fixes the problem.

This is how you can fix it on yours (quoting Gonzalo):
"
I only needed to set the PATH like:
C:\> set PATH=3Dc:\cygwin\home\myuser\go-mono\install\bin;%PATH%

And then my mcs.bat file is just (in install\bin):
@cd c:\cygwin\home\myuser\go-mono\install\bin
@set MONOARGS=3D
@:loop
@if x%1 =3D=3D x goto :done
@set MONOARGS=3D%MONOARGS% %1
@shift
@:done
@mono ..\lib\mono\1.0\mcs.exe %MONOARGS%

"
Erik
On May 10, 2004, at 7:54 AM, Jacques Du Preez wrote:

> Hi,
> =A0
> I'm completely new to Mono, .NET=A0and C#. Although I have a thorough=20=

> knowledge of Delphi, Java, and VB6. I'm having a bit of a problem=20
> compiling my helloworld application from Win XP. Whenever I try to=20
> compile something I get the following error message:
> =A0
> WARNING: Could not find assembly System, references from=20
> D:\Mono\Lib\mono\1.0\mcs.exe
> Unhandled exception: System.NullReferenceException: Object reference=20=

> not set to an instance of an object.
> =A0
> My helloworld.cs source code:
> using System;
> =A0
> class helloworld {
> =A0
> =A0static void Main ()
> =A0{
> =A0=A0Console.WriteLine ("Hello World!");
> =A0}
> }
> =A0
> I know this might be a very elementary question, but please do help a=20=

> very newbie.
> =A0
> Thank you very-very much in advance for any help or recommendations,
> =A0
> Jacques
> =A0
>
> Jacques du Preez
>
> Software Developer
>
> Entegral Technologies Pty (Ltd)
>
> =A0
>
> postal address:  po box 1284, lonehill, 2062
>
> web: www.entegral.co.za
>
> =A0
>
> =A0<image.tiff>
> =A0

--Apple-Mail-14-692597519
Content-Transfer-Encoding: quoted-printable
Content-Type: text/enriched;
	charset=ISO-8859-1

Jacques,


we have some issues on the installer you downloaded and a new version
up there that fixes the problem.


This is how you can fix it on yours (quoting Gonzalo):

"

I only needed to set the PATH like:

C:\> set PATH=3Dc:\cygwin\home\myuser\go-mono\install\bin;%PATH%


And then my mcs.bat file is just (in install\bin):

@cd c:\cygwin\home\myuser\go-mono\install\bin

@set MONOARGS=3D

@:loop

@if x%1 =3D=3D x goto :done

@set MONOARGS=3D%MONOARGS% %1

@shift

@:done

@mono ..\lib\mono\1.0\mcs.exe %MONOARGS%


"

Erik

On May 10, 2004, at 7:54 AM, Jacques Du Preez wrote:


=
<excerpt><fontfamily><param>Arial</param><smaller><x-tad-smaller>Hi,</x-ta=
d-smaller></smaller></fontfamily></excerpt><excerpt>

=A0

<fontfamily><param>Arial</param><smaller><x-tad-smaller>I'm completely
new to Mono, .NET=A0and C#. Although I have a thorough knowledge of
Delphi, Java, and VB6. I'm having a bit of a problem compiling my
helloworld application from Win XP. Whenever I try to compile
something I get the following error =
message:</x-tad-smaller></smaller></fontfamily></excerpt><excerpt>

=A0

<fontfamily><param>Arial</param><smaller><x-tad-smaller>WARNING: Could
not find assembly System, references from =
D:\Mono\Lib\mono\1.0\mcs.exe</x-tad-smaller></smaller></fontfamily></excer=
pt><excerpt>

<fontfamily><param>Arial</param><smaller><x-tad-smaller>Unhandled
exception: System.NullReferenceException: Object reference not set to
an instance of an =
object.</x-tad-smaller></smaller></fontfamily></excerpt><excerpt>

=A0

<fontfamily><param>Arial</param><smaller><x-tad-smaller>My
helloworld.cs source =
code:</x-tad-smaller></smaller></fontfamily></excerpt><excerpt>

<fontfamily><param>Arial</param><smaller><x-tad-smaller>using =
System;</x-tad-smaller></smaller></fontfamily></excerpt><excerpt>

=A0

<fontfamily><param>Arial</param><smaller><x-tad-smaller>class
helloworld {</x-tad-smaller></smaller></fontfamily></excerpt><excerpt>

=A0

<fontfamily><param>Arial</param><smaller><x-tad-smaller>=A0static void
Main ()</x-tad-smaller></smaller></fontfamily></excerpt><excerpt>

=
<fontfamily><param>Arial</param><smaller><x-tad-smaller>=A0{</x-tad-smalle=
r></smaller></fontfamily></excerpt><excerpt>

=
<fontfamily><param>Arial</param><smaller><x-tad-smaller>=A0=A0Console.Writ=
eLine
("Hello =
World!");</x-tad-smaller></smaller></fontfamily></excerpt><excerpt>

=
<fontfamily><param>Arial</param><smaller><x-tad-smaller>=A0}</x-tad-smalle=
r></smaller></fontfamily></excerpt><excerpt>

=
<fontfamily><param>Arial</param><smaller><x-tad-smaller>}</x-tad-smaller><=
/smaller></fontfamily></excerpt><excerpt>

=A0

<fontfamily><param>Arial</param><smaller><x-tad-smaller>I know this
might be a very elementary question, but please do help a very =
newbie.</x-tad-smaller></smaller></fontfamily></excerpt><excerpt>

=A0

<fontfamily><param>Arial</param><smaller><x-tad-smaller>Thank you
very-very much in advance for any help or =
recommendations,</x-tad-smaller></smaller></fontfamily></excerpt><excerpt>=


=A0

=
<fontfamily><param>Arial</param><smaller><x-tad-smaller>Jacques</x-tad-sma=
ller></smaller></fontfamily></excerpt><excerpt>

=A0


<fontfamily><param>Verdana</param>Jacques du Preez</fontfamily>


<fontfamily><param>Verdana</param>Software Developer</fontfamily>


<fontfamily><param>Verdana</param>Entegral Technologies Pty =
(Ltd)</fontfamily>


=A0


=
<fontfamily><param>Verdana</param><color><param>8080,8080,8080</param><sma=
ller><x-tad-smaller>postal
address:  </x-tad-smaller></smaller></color><smaller><x-tad-smaller>po
box 1284, lonehill, =
2062</x-tad-smaller></smaller></fontfamily></excerpt><excerpt>


=
<fontfamily><param>Verdana</param><color><param>8080,8080,8080</param><sma=
ller><x-tad-smaller>web:
=
</x-tad-smaller></smaller></color><smaller><x-tad-smaller>www.entegral.co.=
za</x-tad-smaller></smaller></fontfamily></excerpt><excerpt>


=
<color><param>0000,8080,FFFF</param><smaller><x-tad-smaller>=A0</x-tad-sma=
ller></smaller></color></excerpt><excerpt>


=A0<<image.tiff>

=A0

</excerpt>=

--Apple-Mail-14-692597519--