[Mono-list] Console won't locate Hello.cs
ian.norton-badrul at thales-esecurity.com
Wed May 1 11:58:48 UTC 2013
The compiler will look exactly where you tell it.
I'm assuming you have a cmd window, so see a prompt like:-
If you save your source file on the desktop, you need to "cd" into the desktop
c:\users\jason> cd Desktop
Then you can invoke the compiler and tell it to find your source, eg:
c:\users\jason\Desktop> gmcs hello.cs /out:hello.exe
If I were you, I'd download Xamarin studio and use that if you want to avoid
lots of fun with cmd windows.
On Wed, May 01, 2013 at 12:55:48PM +0100, Jason_G wrote:
> This is probably a sill problem but I cannot seem to fix it, I am following
> the Mono-Basic tutorial and trying to use the console to say "hello world".
> I'm using windows and have created a file called hello.cs with all the
> required code. But when I open up the console and type gmcs hello.cs I get
> the following error.
> "error CS2001: Source file 'hello.cs' could not be found Compilation failed:
> 1 error(s), 0 warnings"
> I have currently saved the file to my desktop, is there somewhere else I
> should save it? or am I doing something wrong? Like I said this is probably
> a silly problem, but I am very new to this and would really appreciate some
> Thank you.
> View this message in context: http://mono.1490590.n4.nabble.com/Console-won-t-locate-Hello-cs-tp4659563.html
> Sent from the Mono - General mailing list archive at Nabble.com.
> Mono-list maillist - Mono-list at lists.ximian.com
More information about the Mono-list