mail-archives/mono-list/2005-February/025749.html

130 строки
5.7 KiB
HTML

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<TITLE> [Mono-list] Hello, Mono!
</TITLE>
<LINK REL="Index" HREF="index.html" >
<LINK REL="made" HREF="mailto:rafael.teixeirabr%40terra.com.br">
<META NAME="robots" CONTENT="index,nofollow">
<LINK REL="Previous" HREF="025786.html">
<LINK REL="Next" HREF="025752.html">
</HEAD>
<BODY BGCOLOR="#ffffff">
<H1>[Mono-list] Hello, Mono!
</H1>
<B>A Rafael D Teixeira
</B>
<A HREF="mailto:rafael.teixeirabr%40terra.com.br"
TITLE="[Mono-list] Hello, Mono!">rafael.teixeirabr@terra.com.br
</A><BR>
<I>Tue, 15 Feb 2005 15:44:18 -0200</I>
<P><UL>
<LI> Previous message: <A HREF="025786.html">[Mono-list] Hello, Mono!
</A></li>
<LI> Next message: <A HREF="025752.html">[Mono-list] Hello, Mono!
</A></li>
<LI> <B>Messages sorted by:</B>
<a href="date.html#25749">[ date ]</a>
<a href="thread.html#25749">[ thread ]</a>
<a href="subject.html#25749">[ subject ]</a>
<a href="author.html#25749">[ author ]</a>
</LI>
</UL>
<HR>
<!--beginarticle-->
<PRE>Well the 'mono' you typed at prompt is just the runtime (the program
that will execute your programs)
you need to compile your C# code first using mcs:
mcs -target:exe HelloMono.cs
then you will have a HelloMono.exe that is your C# source compiled to
the standard (multiplataform) format.
Then you can execute it with:
mono HelloMono.exe
Hope it helps, Have fun
On Tue, 2005-02-15 at 15:15, Hernán Nicolás Taboada wrote:
&gt;<i> ___
</I>&gt;<i> namespace HelloMono
</I>&gt;<i> {
</I>&gt;<i> /// &lt;summary&gt;
</I>&gt;<i> /// This is intended to be a funny presentation to the Mono-list
</I>&gt;<i> /// ... i know is probably not that... funny, heh... anyway :p
</I>&gt;<i> /// &lt;/summary&gt;
</I>&gt;<i> class Hi
</I>&gt;<i> {
</I>&gt;<i> static void Main (string[] args)
</I>&gt;<i> {
</I>&gt;<i> System.Console.WriteLine (&quot;Hello, Mono!&quot;);
</I>&gt;<i> System.Console.ReadLine;
</I>&gt;<i> } // end main
</I>&gt;<i> } // end class
</I>&gt;<i> } // end namespace
</I>&gt;<i> ___
</I>&gt;<i>
</I>&gt;<i> Hello everybody! My name is Hernán and I'm totally new to both the
</I>&gt;<i> Mono Project and the programming world. I'm starting to do my first
</I>&gt;<i> steps reading books like &quot;C# for the absolute beginner&quot; and so on,
</I>&gt;<i> wich are very helpful for me because they explain the very basics of
</I>&gt;<i> everything :D, really suitable for a totally rookie like me. In the
</I>&gt;<i> other hand, I have a little of experience with Linux, I've installed a
</I>&gt;<i> couple of distros, but I'm far to be a &quot;linux literate&quot;, or a &quot;serious
</I>&gt;<i> enthusiast&quot; yet. So well, I'm just trying to follow the exercises
</I>&gt;<i> proposed in those books, so, I've installed Mono vía the YOU facility
</I>&gt;<i> (it stands for YaST Online Update, and also YaST stands for Yet
</I>&gt;<i> another Setup Tool, aw, I'm starting to love acronyms!), then if I try
</I>&gt;<i> to run from a bash console:
</I>&gt;<i>
</I>&gt;<i> miSuse:/usr/bin # mono
</I>&gt;<i>
</I>&gt;<i> a lot of interesting compilation options appears but... I don't what
</I>&gt;<i> to do with them :(. Also I've installed the monodevelop IDE but I
</I>&gt;<i> can't figure out how to execute it. I'm using SUSE 9.1 on a laptop. To
</I>&gt;<i> end, sorry if my english skills aren't the best, my native language is
</I>&gt;<i> spanish but i try to do my best :) Well, hope to read from you soon!
</I>&gt;<i>
</I>&gt;<i> Sincerely,
</I>&gt;<i> Hernán.
</I>&gt;<i> _______________________________________________
</I>&gt;<i> Mono-list maillist - <A HREF="mailto:Mono-list@lists.ximian.com">Mono-list@lists.ximian.com</A>
</I>&gt;<i> <A HREF="http://lists.ximian.com/mailman/listinfo/mono-list">http://lists.ximian.com/mailman/listinfo/mono-list</A>
</I>&gt;<i>
</I>&gt;<i> E-mail classificado pelo Identificador de Spam Inteligente Terra.
</I>&gt;<i> Para alterar a categoria classificada, visite
</I>&gt;<i> <A HREF="http://www.terra.com.br/centralunificada/emailprotegido/imail/imail.cgi?+_u=rafael.teixeirabr&_l=1,1108487805.390051.23662.chipata.terra.com.br,4813,Des15,Des15">http://www.terra.com.br/centralunificada/emailprotegido/imail/imail.cgi?+_u=rafael.teixeirabr&amp;_l=1,1108487805.390051.23662.chipata.terra.com.br,4813,Des15,Des15</A>
</I>&gt;<i>
</I>&gt;<i> Esta mensagem foi verificada pelo E-mail Protegido Terra.
</I>&gt;<i> Scan engine: McAfee VirusScan / Atualizado em 09/02/2005 / Versão: 4.4.00 - Dat 4427
</I>&gt;<i> Proteja o seu e-mail Terra: <A HREF="http://www.emailprotegido.terra.com.br/">http://www.emailprotegido.terra.com.br/</A>
</I>--
Rafael &quot;Monoman&quot; Teixeira
Mono Hacker since 16 Jul 2001 - <A HREF="http://www.go-mono.org/">http://www.go-mono.org/</A>
Mono Brasil Founding Member - <A HREF="http://monobrasil.redesolbrasil.org/">http://monobrasil.redesolbrasil.org/</A>
English Blog: <A HREF="http://monoblog.blogspot.com/">http://monoblog.blogspot.com/</A>
Brazilian Portuguese Blog: <A HREF="http://monoblog.weblogger.terra.com.br/">http://monoblog.weblogger.terra.com.br/</A>
</PRE>
<!--endarticle-->
<HR>
<P><UL>
<!--threads-->
<LI> Previous message: <A HREF="025786.html">[Mono-list] Hello, Mono!
</A></li>
<LI> Next message: <A HREF="025752.html">[Mono-list] Hello, Mono!
</A></li>
<LI> <B>Messages sorted by:</B>
<a href="date.html#25749">[ date ]</a>
<a href="thread.html#25749">[ thread ]</a>
<a href="subject.html#25749">[ subject ]</a>
<a href="author.html#25749">[ author ]</a>
</LI>
</UL>
</body></html>