A simple tool to convert a web.config file to an appsettings.json file.
The latest release of dotnet-config2json requires the 2.1.300 .NET Core SDK or newer. It also works with .NET Core 2.2. and .NET Core 3.1. Once installed, run this command:
dotnet tool install --global dotnet-config2json
Usage: dotnet config2json [arguments] [options]
Arguments:
path Path to the file or directory to migrate
delimiter The character in keys to replace with the section delimiter (:)
prefix If provided, an additional namespace to prefix on generated keys
Options:
-?|-h|--help Show help information
Performs basic migration of an xml .config file to
a JSON file. Uses the 'key' value as the key, and the
'value' as the value. Can optionally replace a given
character with the section marker (':').