Search This Blog

Monday, 22 July 2019

.NET Core on Windows using the command line

Hello, Console App!

using System;

namespace HelloWordConsoleApp {
    class Program {
        static void Main(string[] args) {
            Console.WriteLine("Hello World!");
            Console.ReadKey();
        }
    }
}

How to run

CMD Command>dotnet run HelloWordConsoleApp.csproj
or
CMD Command>dotnet run

Output C:\HelloWordConsoleApp>dotnet run HelloWordConsoleApp.csproj
Hello World!

No comments:

Post a Comment

Elasticsearch - Nodes, clusters, and shards

Elastic Stack Video - Load your gun in short time.   Beginner's Crash Course to Ela...

Recent Post