Configuration section designer example

Source: Internet
Author: User

Configuration section designer is a graphic design. Net configuration block and automatically generated needsCodeAnd a schema-defined codeplex open source project. It is a plug-in of Vs and requires the Microsoft Visual Studio 2008 Standard Edition or better version.

Download the latest installation file from http://www.codeplex.com/csd. the latest one is 1.1.18.0. After installation, another project template configuration section project is added to vs2008. You can also add a configurationsectiondesigner item to the existing project. The effect is the same.

This is a project based on Visual Studio DSL tool, a specific language (DSL) tool in the Microsoft domain. dsl can be obtained from the following sites.

  • Visual Studio extensibility
  • DSL tools
  • Visual Studio domain specific language tools
  • Examples not provided by the authorProgramI thought about it for a while, but the research is not deep enough for reference only.

    1. Create a console Program

    2. Add the configurationsectiondesigner subitem

    3. The generated solution is as follows. The four files in the red box are generated by configurationsectiondesigner.

  • Configurationsection. CSD: Graphic design file.
  • Configurationsectioncode. TT: A Text Template code generator that generates the C # code for the configuration section.
  • Configurationsectionsample. TT: Generates a sample configuration file.
  • Configurationsectionschema. TT: Generates the XSD Schema representing the configuration section.
  • 3. Drag configuration sections, configuration elements and configuration element collections from the toolbox to complete the intermediate Graphic Design

    4. Read the configuration file

     

    Download demo

    Shore comments

    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.