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

Share:
11,141
Anthony Mastrean
Author by

Anthony Mastrean

Updated on June 20, 2022

Comments

  • Anthony Mastrean
    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
    Rory over 14 years
    What 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
    Ed Bayiates about 6 years
    Neither link seems to have any information about how do add the schema. I found this: msdn.microsoft.com/en-us/library/ms255816.aspx