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 ArticleAdding 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 ArticleConverting 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 ArticleCreating 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 ArticleThe 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 ArticleAdding 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 ArticleUsing 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 ArticleCreating 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 ArticleSetting 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 ArticlePushing 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 ArticleExploring 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 ArticleSuppressing 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 ArticleWriting 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 ArticleBuilding 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 ArticleBuilding .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 ArticleAdding 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 ArticleConverting 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 ArticleCreating 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 ArticleThe 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 ArticleAdding 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