The IDE complains that the Config files specified in the ConfigSource attributes do not match DotNetConfig.xsd

I find the configsource links in .config files very useful. However, since these referenced configuration files contain only fragments of the entire app.config hierarchy, the IDE complains.

In the app.config file:

  <configuration>
    <configSections>
        <section name="customProfiles" type="SomeConfigClass, SomeAssembly"/>
    </configSections>
</configuration>

(snip)

<valveProfiles configSource="Profiles.config" />

in the Profiles.config profile:

<customProfiles>
    <curveProfile number="-1" name="Cusom1" />
</customProfiles>

However, the IDE is associated with the Profiles.Configfile using a scheme DotNetConfig.xsdthat expects "customProfiles" to be declared in the configSections element, which is not in the Profiles.config file.

, intellisense , , , google . , , "undersquiggle" ;)

+3

Source: https://habr.com/ru/post/1710135/


All Articles