Add an XML schema to Visual Studio
11,141
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
- http://msdn.microsoft.com/en-us/library/ms255811.aspx
- http://msdn.microsoft.com/en-us/library/ms255815.aspx
Author by
Anthony Mastrean
Updated on June 20, 2022Comments
-
Anthony Mastrean almost 2 years
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.)
-
Rory over 14 yearsWhat neither of those links seem to point out is that the "schema cache folder" is the Xml\Schemas folder under the Visual Studio install path.
-
Ed Bayiates about 6 yearsNeither link seems to have any information about how do add the schema. I found this: msdn.microsoft.com/en-us/library/ms255816.aspx