When using ConfigurationSections in app.config - do you get intellisense?

Consider:

http://msdn.microsoft.com/en-us/library/2tw134k3.aspx

When you create your custom types in app.config, do you get intellisense to help you?

Or is it a case of programming in XML "in its own way"? It doesn't seem to work for me if that is the case, but if intellisense is designed to work, I know that I'm doing something wrong.

thanks

+3
source share
4 answers

No, not by default.

intellisense, . XML ( xmlns = yournamespace , Visual Studio , ).

+4

. , .

, , , , ...

+1

Codeplex, .

This is a VS plugin that extends VS and allows you to visually create your own configuration diagram. Kicker: it also creates an XSD scheme for this, therefore, just copying it to the appropriate folder in the VS installation folder, you will get intellisense - as if for free !:-)

Check it out - pretty interesting.

Mark

+1
source

You need to create an XML schema file and place it in the C: \ Program Files \ Microsoft Visual Studio 9.0 \ Xml \ Schemas folder for VS2008 to recognize them.

0
source

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


All Articles