I start to learn .Net Core. I want to write a simple 'Hello World' console application.
Unfortunately the System.Console
is not available initially. This is my code:
using System;
class Program
{
public static void Main()
{
Console.WriteLine("Hello from Mac");
}
}
What package should I install?
FYI, I'm using Mac with VSCode and .net core rc1 update 2.
Make sure in your project.json system.console is referenced under
frameworks:dnxcore50:dependencies
Example project.json: