Showing posts with label .Net Core. Show all posts
Showing posts with label .Net Core. Show all posts

Thursday, October 1, 2020

Create Docker Image with .Net Core executable

 In the previous post we saw how to create an Executable (.exe file)  for a .Net Core console application. In this post we shall see how to package this .exe into a Docker image and deploy it as a Docker Container. 

First we will have to create a Dockerfile, we will create this file in the publish folder where the publish results (.exe files) are created.    

Creating Executable from .Net Core Application

.Net Core applications by default will create .dll executables, in this post we shall see how to explicitly create a .exe using .Net Core, in the next post we will see how to use this .Exe and create a Docker image. 
Let’s start by creating a .Net Core Console App using Visual Studio.

Monday, September 28, 2020

Updating Dockerfile and rebuilding images using VisualStudio

 In the previous post we saw on how to create a .Net Core console App and use Visual Studio to automatically add Dockerfile to the project. In this post, we will see how to change the Dockerfile created by Visual Studio and rebuild the Docker image with the modified file.

Once the Dockerfile is created we can manually exit the Docker file Add/Modify steps and rebuild the Docker image.

In this sample, we will add proxy settings to enable package restore in a Corporate firewall environment.

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

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.

Saturday, December 22, 2018

What's new in .Net Core 2.1

.Net Core 2.1 mainly focus on enhancing performance both build and execution performance, in addition it also added more support to the tools library by adding more commands and global tool commands. Along with .Net Core 2.1, Entity Framework Core 2.1 was also released which added a lot of interesting featured to EF Core. Let us now look into the new features of .Net Core 2.1 in detail.

What’s New in .Net Core 2.0

.Net Core 2.0 is the 2nd Major version of .Net Core released in August 2017, it was released along with Asp.Net 2.0 and Entity Framework 2.0. .Net Core 2.0 brings some improvements like tooling support, language support, support for .Net Standard 2.0, Side-by-side support for .NET Core SDKs, better integration with Visual Studio etc. In this post we shall see each of these in detail.

Thursday, December 20, 2018

.Net Core version History

The first version of .Net Core was released in June 2016, from then on .Net core has been receiving new versions and feature additions from time-to-time. I this post we shall see some of the Major version released in .Net Core and a brief overview of features released in each version of .Net core.

.Net vs .Net Core

.Net Core is the new .Net framework released by Microsoft, it has many advantages over the previous version of .Net Framework. In this post let us compare the features of the original .Net framework with the .Net Core.

Wednesday, December 19, 2018

Advantages of .Net Core

.Net Core is the new .Net framework from Microsoft, the focus of .Net Core is to provide a light weight, faster platform for developing applications which have cross platform support. Microsoft is focusing more on .Net Core, hence we can expect more feature additions and developments to happen in .Net core in the years to come. Following are some of the advantages of .Net Core over the previous version of .Net

What is .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. The older versions of .Net framework can execute only in Windows environment, .Net core can execute in Windows, Linux & Mac Operating systems.

Using .Net core we can create console applications, class libraries and Web (MVC & Web API) applications. .Net core is a lighter version compared to the previous version of .Net hence is supports limited project types at this point. The lighter version makes it easier to ship it with applications developed in .Net core, it also supports deployment using Dockers.