OddDev
OddDev

Reputation: 3734

Application Output just shows nothing for a simple Hello World

I'm on Elementary OS and just installed "MonoDevelop". I'm forced to use C#. However, it came up with a simple Hello World default program:

using System;

namespace HelloCsharp{
    class MainClass{
        public static void Main (){
            Console.WriteLine ("Hello World!");
        }
    }
}

The problem is that my "Application Output" panel is empty. At least it creates a new line (yet an empty line). I've selected it and thus it is shown as a "blue bar" in the following screenshot.

enter image description here

The checkboxes "Run on external console" and "Pause console output" are checked.

enter image description here

Anyone has any suggestions?

Am I right that this code normally should give me an output in this panel?

Upvotes: 1

Views: 652

Answers (1)

cbr
cbr

Reputation: 13652

If you tick Run on external console, MonoDevelop will start your program...in an external console. By default this is /usr/bin/xterm. You can create a symlink to your preferred console application by creating a symlink to it in /usr/bin/ and naming it xterm.

If you wish to receive the output to the Application Output pad instead, untick Run on external console.

Upvotes: 3

Related Questions