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