Application Output just shows nothing for a simple Hello World

走远了吗. 提交于 2019-12-11 06:59:24

问题


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.

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

Anyone has any suggestions?

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


回答1:


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.



来源:https://stackoverflow.com/questions/31366115/application-output-just-shows-nothing-for-a-simple-hello-world

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!