Microsoft's new generation of ASP. NET (Vnext), also known as ASP. NET 5, open source code is placed under the URL https://github.com/aspnet.
This article describes the Configuration project, the download path is https://github.com/aspnet/Configuration.
The next generation of configuration files support JSON form, XML form, even support command line, configuration file, INI file, and all the formats that you want to extend, and can be derived from more than one or the other, you can choose to use the JSON and XML class configuration file together, and more importantly, the new configuration file schema, Very clear and simple, can see the source structure at a glance, and easy to expand.
First of all, we will give you the structure of the project to be posted out:
We only talk about the source code under the SCR folder, and the test project under the tests folder will be skipped. And for the SRC source part, roughly want to be divided into three parts to explain:
- The interface definition of the configuration file and the underlying implementation
- Basic definition of Microsoft.Framework.Configuration.Abstractions configuration file
- Basic implementation of the Microsoft.Framework.Configuration configuration file
- Binder, special configuration file implementation
- Microsoft.Framework.Configuration.Binder
- Additional configuration file source extensions
- Microsoft.Framework.Configuration.CommandLine command-line extension
- Microsoft.Framework.Configuration.EnvironmentVariables environment variable Extension
- Microsoft.Framework.Configuration.Ini Ini File extension
- Microsoft.Framework.Configuration.Json Json Extension
- MICROSOFT.FRAMEWORK.CONFIGURATION.XML Xml Extensions
The path to the three blog post:
- [ASP. 5] configuration-New generation of configuration files (interface definition and basic implementation)
- [ASP. 5] configuration-New generation of configuration files (magical binder)
- [ASP. 5] configuration-New generation of configuration files (multiple implementations of Configurationsource)
[ASP. 5] configuration-New generation of configuration files