How to use machine-specific configuration with ASP.NET Core

added by DotNetKicks
9/22/2016 4:59:18 PM

2 Kicks, 326 Views

In this quick post I'll show how to easily setup machine-specific configuration in your ASP.NET Core applications. This allows you to use different settings depending on the name of the machine you are using. The tl;dr; version is to add a json file to your project containing your computer's name, e.g.