Info
Version: | 2.0.1 |
Author(s): | Cedd Burge |
Last Update: | Monday, January 6, 2020 |
.NET Fiddle: | Create the first Fiddle |
Project Url: | https://github.com/resgroup/configuration |
NuGet Url: | https://www.nuget.org/packages/RES.Configuration |
Install
Install-Package RES.Configuration
dotnet add package RES.Configuration
paket add RES.Configuration
RES.Configuration Download (Unzip the "nupkg" after downloading)
Dependencies
- Microsoft.Extensions.Configuration(>= 2.1.1)
- System.Configuration.ConfigurationManager(>= 4.5.0)
Tags
Has the following benefits. There are no magic strings, so any misspellings will be caught at compile time. Refactoring tools (eg rename), can be used and guarantee that all instances are updated. All references to an item of configuration can be easily found using Visual Studio.
Code is explicit about the configuration it requires, and can define only the subset of the configuration that it needs. Configuration files can be checked to see if they contain all the required information. Configuration logic, such as defaults and conversion is handled centrally. Configuration items are guaranteed to have the same name in the config file and in the code.