Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Tool for generating custom configuration sections

We all live with the .NET configuration file XML format (e.g. Web.config, App.config, etc).

Creating the code for custom configuration sections is straight forward but somewhat monotonous. Is there a good tool to build custom configuration sections that generates the classes?

Ideally the tool would also look at sample XML sections built by hand and reverse engineer them into classes. Tweaking would need to be involved with the tool because it can't guess all aspects of usage.

I generate enough custom configuration sections for components that this tool would be well used.

like image 717
John K Avatar asked Jan 08 '11 20:01

John K


People also ask

How do I create a custom section in app config?

We will start with creating an class that can store the instance settings (the <add> element), then we'll create a collection that can store our instances (the <instances> element) and then we'll create the class to manage the Configuration Section (the <sageCRM> element).


1 Answers

How about a Configuration Section Designer?

Configuration Section Designer in Action

I have used this and customized it. It comes with full source code.

like image 50
John Saunders Avatar answered Sep 21 '22 13:09

John Saunders