Results 1 to 3 of 3
hi,...i am quite new to Linux and having some problems in mono-develop.
i am using openSuSe 10.2 and having a problem in compiling a C# program on mono-develop.
mono-develop is ...
- 01-29-2007 #1Just Joined!
- Join Date
- Jan 2007
- Posts
- 4
C# help in Mono-Develop
hi,...i am quite new to Linux and having some problems in mono-develop.
i am using openSuSe 10.2 and having a problem in compiling a C# program on mono-develop.
mono-develop is not recognizing the Console.ReadLine(); command.
for example when i type the following code:
using System;
namespace project1
{
class MainClass
{
public static void Main(string[] args)
{
Console.ReadLine();
Console.WriteLine("Hello World!");
}
}
}
when i build the above program, it compiles successfully but when i hit 'Run' and the output is
Hello World!
this is incorrect as the program should wait for the user to give a input because of the Console.ReadLine(); command.
This is the problem i m facing, the compiler is not reading only that particular line.
any help would be appreciated
- 01-29-2007 #2Just Joined!
- Join Date
- Aug 2006
- Location
- Germany
- Posts
- 26
Hello!
First off, if you want to program .Net it's usually better to use Windows, since Mono is not (yet) complete.
Your code is correct and it works for me. I think the problem is monodevelop. If you just compile and start via "mono Test.exe" everything should be alright.
Regards.
- 01-29-2007 #3Just Joined!
- Join Date
- Jan 2007
- Posts
- 4
Thanks buddy.
that really helped me,....now i dont have to depend on windows for anything.
thanks again.


Reply With Quote