Xsd schema for my configuration

I am developing a class library project that has its own implementation of the ConfigurationSection class. I want to provide intellisense support for configuration files. I created a valid xsd file for the configuration section. Now the problem is how to tell the web.config / app.config file to use my xsd scheme? I know this section is for the xmlns attribute, but this solution throws an exception. So, is there any other way to assign my xsd schema configuration file?

And just to clarify the situation, I will mark the correct answer and vote for the message :-)

thank

+3
source share
2 answers

DotNetConfig.xsd, *\Program Files\Microsoft Visual Studio xxx\Xml\Schemas *

, .

, .

0

, . DotNetConfig.xsd.

( ) "", Schemas.

Property Window

"..." , XML Schemas, .xsd- . , "", xsd .

XML Schema Window

0

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


All Articles