[ASP. 5] configuration-New generation of configuration files

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.