Providing intellisense / xsd validation configurations

in a small C # project, I am trying to create a simple custom configuration. I followed the instructions in CodeProject: unraveling the secrets of the .NET 2.0 configuration , and everything works fine ... except that I will not get xsd and intellisense validation in config.

My configuration is shown below.

<configuration>
 <configSections>
    <section name="pizza" type="TestConfig.Configuration.PizzaConfigurationSection, TestConfig.Configuration"/>
 </configSections>

 <pizza name="Margherita" timeToCook="00:10:00" price="15.12">
   <cook firstName="Nicola" lastName="Carrer" rank="7" />
   <toppings>
     <add name="Mozzarella" percentage="0.6" />
     <add name="Tomato sauce" percentage="0.28" />
     <add name="Oregano" percentage="0.02" />
     <add name="Mushrooms" percentage="0.1" />
   </toppings>
 </pizza>
</configuration>

In this article ( XSDExtractor ) I found a tool that creates an xsd file for configuration. It works great, i.e. Provides intellisense and validation for core attributes (such as "price") and individual items ("cook"). However, I could not get it to work for collections ("fillings").

My questions:

  • - , xsd ConfigurationSection?
  • - XSDExtractor ConfigurationSection ?

, Nicola

+5
1

XSDExtractor, , , Configuration Section Designer. Visual Studio, .NET (XSD).

+5

All Articles