This project is read-only.

Simplified Drill Configuration XML

The Drill configuration XML that can be parsed by the XmlConfigurationReader class does not have to use the full structure that is required by .NET config files. The following Drill configuration XML examples show minimal configuration that are all legal when parsed using the XmlConfigurationReader class.
Remove xml declaration, configuration root element and the config sections
<drill>
    <dependencyResolvers>
        <dependencyResolver name="Default">
            <drillBits>
                <drillBit name="Default" type="Drill.DrillBits.Unity.UnityDrillBit, Drill.DrillBits.Unity">
                    <cfgSources>
                        <cfgSource key="UnityConfigFile" method="ConfigFile" />
                    </cfgSources>
                </drillBit>
            </drillBits>
        </dependencyResolver>
    </dependencyResolvers>
</drill>

Removing the drill element
<dependencyResolvers>
    <dependencyResolver name="Default">
        <drillBits>
            <drillBit name="Default" type="Drill.DrillBits.Unity.UnityDrillBit, Drill.DrillBits.Unity">
                <cfgSources>
                    <cfgSource key="UnityConfigFile" method="ConfigFile" />
                </cfgSources>
            </drillBit>
        </drillBits>
    </dependencyResolver>
</dependencyResolvers>

Removing the dependencyResolvers element - Only one dependency resolver
<dependencyResolver name="Default">
    <drillBits>
        <drillBit name="Default" type="Drill.DrillBits.Unity.UnityDrillBit, Drill.DrillBits.Unity">
            <cfgSources>
                <cfgSource key="UnityConfigFile" method="ConfigFile" />
            </cfgSources>
        </drillBit>
    </drillBits>
</dependencyResolver>

Last edited Nov 21, 2012 at 12:47 AM by wreynolds, version 1

Comments

No comments yet.