Skip to content

A simple tool to convert a web.config file to an appsettings.json file

License

Notifications You must be signed in to change notification settings

andrewlock/dotnet-config2json

Repository files navigation

dotnet-config2json

AppVeyor build status

NuGet MyGet

A simple tool to convert a web.config file to an appsettings.json file.

Installation

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

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 (':').

About

A simple tool to convert a web.config file to an appsettings.json file

Resources

License

Stars

Watchers

Forks

Packages

No packages published