.NET Core

learn.microsoft.com

Use cases

Console project

By default .NET Core Console applications reference very few elements.

These are good references to start with:

  • Microsoft.Extensions.DependencyInjection

  • Microsoft.Extensions.Logging

    • Microsoft.Extensions.Logging.Console

    • Microsoft.Extensions.Logging.Debug

  • Microsoft.Extensions.Configuration

    • Microsoft.Extensions.Configuration.Json

Json serialization

You can convert a Json to Xml:

// object is needed as the value is an array
var expected = JsonConvert.DeserializeXmlNode($"{{\"object\": {step.ExpectedResponseJsonString}}}", "root");

Features

Versions

You can find all the release notes on GitHub.

Tutorials

Start with .NET Tutorial - Hello World in 10 minutes then Learn .NET Core and the .NET Core SDK tools by exploring these Tutorials.

Recipes

Scripting

Docker

.NET Core runs really well on Docker.

dotnet/dotnet-docker is the GitHub repository for .NET Core Docker official images, which are now hosted on Microsoft Container Registry (MCR). To know more read this arcticle .NET Core Container Images now Published to Microsoft Container Registry published on March 15, 2019.

Julien Chable has an interesting blog to follow with articles on .NET Core and Docker.

Official images repository:

To review:

.NET Core on Kubernetes

Background tasks

Excel

HTTP Client with NTLM authentication

{{< highlight csharp >}} // Startup.cs public void ConfigureServices(IServiceCollection services) { services.AddHttpClient(apiClientConfiguration.HttpClientName) .ConfigurePrimaryHttpMessageHandler( x => new HttpClientHandler { Credentials = new CredentialCache { { new Uri(apiClientConfiguration.EndpointDomain), "NTLM", new NetworkCredential(_configuration.CustomApiClientUsername, _configuration.CustomApiClientPassword) } } }); } {{< /highlight >}}

CMS

.NET Core & PHP

Angular & ASP.NET Core

.NET Core on AWS

.NET Core & Istio

  • "Deploy and Run a Distributed Cloud Native system using Istio, Kubernetes & .NET core" source code

Last updated