pengweiqhca / config2json

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

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Converts a web.config/app.config file to an appsettings.json file

Installation

The latest release of config2json requires the 6.0.100 .NET Core SDK or newer. Once installed, run this command:

dotnet tool install -g config2json

Usage

Usage: config2json [options] <path> <prefix>

Arguments:
  path          Path to the file or directory to migrate
  prefix        If provided, an additional namespace to prefix on generated keys

Options:
  -?|-h|--help  Show help information.
  -r|--raw      Show parsed raw key/value.

 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

License:Other


Languages

Language:C# 95.8%Language:PowerShell 4.2%