Saturday, January 19, 2019

.Net Core Getting Started

.Net Core Overview

Hello World .Net Core console App with Visual Studio

In the previous posts we saw on how to create a .Net Core console app using command line and using Visual Studio Code. In this post we shall create a .Net Core console app using Visual Studio. To begin with open Visual Studio, select New Project and select the template .Net Core -> Console App.

Hello World .Net Core console App with Visual Studio Code

In the previous posts we saw on how to create a simple Hello World console application using the dotnet CLI tools. This is fine for simple applications, when we want to build complex applications with multiple files we need a good editor to view and switch between multiple files in the project.

Tuesday, January 8, 2019

Deploying .Net Core using command line tools

We saw that .Net Core offers 2 types of deployment framework-dependent deployment and self-contained deployment. In the post we shall see on how to deploy a simple console applications using the command line (CLI) tools.

Let us takes the simple Hello World console application, and try to create a deployment package for the application. 


Deploying .NET Core Applications

Depending on the type of application and the target environment .Net core offers different types of packaging and deployment. Mainly there are 2 types of deployment framework-dependent deployment and self-contained deployment.

Sunday, January 6, 2019

.NET Core command-line interface (CLI) tools

The .Net Core CLI (Command Line Interface) tools are a set of command line tools, which come along with the .Net core installation. The CLI tools can be used preform operations like create, build, publish and other operations on .Net core applications.

By default, the CLI installs in a side-by-side (SxS) manner, so multiple versions of the CLI tools can coexist on a single machine. The CLI command structure consists of the driver dotnet, the command, and possibly command arguments and options.

Friday, January 4, 2019

Hello World console App using .Net Core

In the previous post Getting started with .Net Core, we saw on how to setup the environment to create .Net Core applications, once the environment is setup we can go ahead and create .Net Core applications.

In the post we shall create a simple Hello World console application in .Net Core
First create a folder HelloConsole, our sample files will be created inside this folder. Open a command prompt and navigate to this folder. Once in the folder run the following command in the command prompt.

Getting started with .Net Core

.Net Core is an open-source development platform developed and maintained by Microsoft. The main idea behind creation of .Net Core is cross platform compatibility. Let us see how to setup the environment and get started with .Net Core in Windows platform.

The first thing to get started with .Net Core application development is to download the .Net Core SDK from Microsoft website.

https://dotnet.microsoft.com/download

Two flavors of .Net core downloads are available in Microsoft’s website.