Easily manage configuration within your .net core application
- Install dot net core for your platform
- cd to working directory
cd EasyConfig.Net.Sample
dotnet restore
dotnet run uri_required=http://www.google.com string_required_commandline=string1 string_sensitive_required=sensitiveinformation overridable-required=overriden-in-command-line day-of-week=tuesday
- cd to working directory
cd EasyConfig.UnitTests
dotnet restore
dotnet test
- Strongly typed parameters
- Uri
- String
- Int
- Enums (case insensitive)
- Configuration Sources
- Environment Variables
- Command Line Arguments
- Json Config files
- Overridable Configuration
- Other missing parameter types
Must be an absolute Uri. Throws a ConfigurationTypeException
if unable to parse a Uri
Can be pretty much anything but cannot yet contain spaces
Can be an int. Throws a ConfigurationTypeException
if unable to parse a valid int
Can be any enum - will default to the default value of that enum if it is not provided. Throws an EnumConfigParseException
if it fails to parse correctly
Can be any enum - will default to null if not provided. Throws an EnumConfigParseException
if it fails to parse correctly
Cannot guarantee that the internal functionality remains the same. Large refactors of the internal code have taken place and efforts have been taken to preserve the original contract, but the risk of some nuanced detail changing forces me to update the major version number again.
The old contract is still honoured, but if you have been relying on a quirk of the library then I cannot guarantee that it will still operate the same way.
Has been upgraded to dotnet core 2.0