Auto-restarting for .NET

Our next candidate is a .NET application written in C#. Let's look at how auto-restart works in .NET.

  1. First, create a new project folder for our sample C# application and navigate to it:
$ mkdir -p ~/fod/ch06/csharp && cd ~/fod/ch06/csharp
If you have not done so before, please install .NET Core on your laptop or workstation. You can get it at https://dotnet.microsoft.com/download/dotnet-core. At the time of writing, version 2.2 is the current stable version. Once it's installed, check the version with dotnet --version. It is 2.2.401 for me.
  1. Navigate to the source folder for this chapter:
$ cd ~/fod/ch06
  1. From within this folder, use the dotnet tool to create a new Web API and have it placed in the dotnet subfolder: ...

Get Learn Docker - Fundamentals of Docker 19.x - Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.