https://github.com/ffernandolima/extensions-configuration
Exposes configuration factory including legacy xml files support.
https://github.com/ffernandolima/extensions-configuration
Last synced: 10 months ago
JSON representation
Exposes configuration factory including legacy xml files support.
- Host: GitHub
- URL: https://github.com/ffernandolima/extensions-configuration
- Owner: ffernandolima
- License: mit
- Created: 2020-06-25T23:55:30.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2021-08-26T18:07:22.000Z (almost 5 years ago)
- Last Synced: 2025-08-01T04:36:02.051Z (11 months ago)
- Language: C#
- Homepage:
- Size: 1.74 MB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# extensions-configuration
Exposes configuration factory including legacy xml files support.
[](https://github.com/ffernandolima/extensions-configuration/actions/workflows/build-and-tests.yml?branch=master)
[](https://github.com/ffernandolima/extensions-configuration/actions/workflows/build-and-publish.yml?branch=master)
| Package | NuGet |
| ------- | ----- |
| Extensions.Configuration.Factory | [ ](https://www.nuget.org/packages/Extensions.Configuration.Factory/2.3.0) |
## Installation
It is available on Nuget.
```
Install-Package Extensions.Configuration.Factory -Version 2.3.0
```
## Usage
The following code demonstrates basic usage of configuration factory.
appsettings.json:
```JSON
{
"ParentKey" : {
"ChildKey" : "xxx"
}
}
```
App/Web.Config:
```XML
```
```C#
var config = ConfigurationFactory.Instance.GetConfiguration();
var value = config["ParentKey:ChildKey"];
```
## Support / Contributing
If you want to help with the project, feel free to open pull requests and submit issues.
## Donate
If you would like to show your support for this project, then please feel free to buy me a coffee.
