Add an XML schema to Visual Studio
-
10-07-2019 - |
Question
I want Intellisense support when writing App.config sections or XML configuration files for components like NHibernate, log4net, or Unity. What options do I have to get Visual Studio to find these files and load Intellisense?
(Assume we have the schema file.)
Solution
Yes it is possible to do this. You need to associate the schema with the document and the XML editor will then provide intellisense. The following links go over how to achieve this
OTHER TIPS
Open your config file, under the properties window for your config file there is a section called 'Schemas', add your schema there.
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow