Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to make a Console application work from an empty project in Xamarin studio

I've created a simple "hello world" application, starting from an Empty Project. The code just prints a hello world

public class Test_Class {
    public static void Main() {
        System.Console.WriteLine ("hello, world");
    }
}

But no console window pops up when I run the application. How do I make the console show?

like image 919
user3662953 Avatar asked May 26 '14 02:05

user3662953


2 Answers

You need to check the "Run on external console" checkbox from Project Options -> Run -> General.

enter image description here

like image 133
sashoalm Avatar answered Sep 19 '22 20:09

sashoalm


  1. Open Xamarin Studio
  2. There is a link on left upper corner for "New Solution", click on it
  3. A new windows is open for "choose a template for your new project"
  4. From left side menu other->.NET
  5. give project name, solution name, and create project
  6. Left panel in solution->project_name->add
like image 27
sam Avatar answered Sep 17 '22 20:09

sam