Quantcast
Channel: Andrew Lock | .NET Escapades
Browsing all 743 articles
Browse latest View live
↧

Image may be NSFW.
Clik here to view.

Building .NET Framework ASP.NET Core apps on Linux using Mono and the .NET CLI

I've been hitting Docker hard (as regulars will notice from the topic of recent posts!), and thanks to .NET Core, it's all been pretty smooth sailing. However, I had a requirement for building a...

View Article


Image may be NSFW.
Clik here to view.

Adding validation to strongly typed configuration objects in ASP.NET Core

In this post I describe an approach you can use to ensure your strongly typed configuration objects have been correctly bound to your configuration when your app starts up. By using an IStartupFilter,...

View Article


Image may be NSFW.
Clik here to view.

Converting web.config files to appsettings.json with a .NET Core global tool

In this post I describe how and why I created a .NET Core global tool to easily convert configuration stored in web.config files to the JSON format more commonly used for configuration in ASP.NET Core....

View Article

Image may be NSFW.
Clik here to view.

Creating an If Tag Helper to conditionally render content

One of the best features added to ASP.NET Core Razor is Tag Helpers. These can be added to standard HTML elements, and can participate in their rendering. Alternatively, they can be entirely new...

View Article

Image may be NSFW.
Clik here to view.

The ASP.NET Core Generic Host: namespace clashes and extension methods

ASP.NET Core 2.1 introduced the ASP.NET Core Generic Host for non-HTTP scenarios. In standard HTTP ASP.NET Core applications, you configure your app using the WebHostBuilder in ASP.NET Core, but for...

View Article


Image may be NSFW.
Clik here to view.

Adding Serilog to the ASP.NET Core Generic Host

ASP.NET Core 2.1 introduced the ASP.NET Core Generic Host for non-HTTP scenarios. In standard HTTP ASP.NET Core applications, you configure your app using the WebHostBuilder in ASP.NET Core, but for...

View Article

Image may be NSFW.
Clik here to view.

Using snake case column names with Dapper and PostgreSQL

This is a follow on to a previous post about customising naming conventions for PostgreSQL and EF Core. In this post I describe one way to use snake case naming conventions when using Dapper, rather...

View Article

Image may be NSFW.
Clik here to view.

Creating NuGet packages in Docker using the .NET Core CLI

This is the next post in a series on building ASP.NET Core apps in Docker. In this post, I discuss how you can create NuGet packages when you build your app in Docker using the .NET Core CLI. There's...

View Article


Image may be NSFW.
Clik here to view.

Setting ASP.NET Core version numbers for a Docker ONBUILD builder image

In a previous post, I showed how you can create NuGet packages when you build your app in Docker using the .NET Core CLI. As part of that, I showed how to set the version number for the package using...

View Article


Image may be NSFW.
Clik here to view.

Pushing NuGet packages built in Docker by running the container

In a previous post I described how you could build NuGet packages in Docker. One of the advantages of building NuGet packages in Docker is that you can don't need any dependencies installed on the...

View Article

Image may be NSFW.
Clik here to view.

Exploring the .NET Core 2.1 Docker files (updated): dotnet:runtime vs...

This is an update to my previous post explaining the difference between the various Linux .NET docker files. Things have changed a lot in .NET Core 2.1, so that post is out of date! When you build and...

View Article

Image may be NSFW.
Clik here to view.

Suppressing the startup and shutdown messages in ASP.NET Core

In this post, I show how you can disable the startup message shown in the console when you run an ASP.NET Core application. This extra text can mess up your logs if you're using a collector that reads...

View Article

Image may be NSFW.
Clik here to view.

Writing logs to Elasticsearch with Fluentd using Serilog in ASP.NET Core

For apps running in Kubernetes, it's particularly important to be storing log messages in a central location. I'd argue that this is important for all apps, whether or not you're using Kubernetes or...

View Article


Image may be NSFW.
Clik here to view.

Building ASP.NET Core apps on both Windows and Linux using AppVeyor

Nearly two years ago I wrote a post about using AppVeyor to build and publish your first .NET Core NuGet package. A lot has changed with ASP.NET Core since then, but by-and-large the process is still...

View Article

Image may be NSFW.
Clik here to view.

Building .NET Framework ASP.NET Core apps on Linux using Mono and the .NET CLI

I've been hitting Docker hard (as regulars will notice from the topic of recent posts!/), and thanks to .NET Core, it's all been pretty smooth sailing. However, I had a requirement for building a...

View Article


Image may be NSFW.
Clik here to view.

Adding validation to strongly typed configuration objects in ASP.NET Core

In this post I describe an approach you can use to ensure your strongly typed configuration objects have been correctly bound to your configuration when your app starts up. By using an IStartupFilter,...

View Article

Image may be NSFW.
Clik here to view.

Converting web.config files to appsettings.json with a .NET Core global tool

In this post I describe how and why I created a .NET Core global tool to easily convert configuration stored in web.config files to the JSON format more commonly used for configuration in ASP.NET Core....

View Article


Image may be NSFW.
Clik here to view.

Creating an If Tag Helper to conditionally render content

One of the best features added to ASP.NET Core Razor is Tag Helpers. These can be added to standard HTML elements, and can participate in their rendering. Alternatively, they can be entirely new...

View Article

Image may be NSFW.
Clik here to view.

The ASP.NET Core Generic Host: namespace clashes and extension methods

ASP.NET Core 2.1 introduced the ASP.NET Core Generic Host for non-HTTP scenarios. In standard HTTP ASP.NET Core applications, you configure your app using the WebHostBuilder in ASP.NET Core, but for...

View Article

Image may be NSFW.
Clik here to view.

Adding Serilog to the ASP.NET Core Generic Host

ASP.NET Core 2.1 introduced the ASP.NET Core Generic Host for non-HTTP scenarios. In standard HTTP ASP.NET Core applications, you configure your app using the WebHostBuilder in ASP.NET Core, but for...

View Article
Browsing all 743 articles
Browse latest View live