Skip to main content

Mark Stokes

Go Search
Home
People & Blogs
Twitter
Wiki
Events
Forums
Resources
Jobs
Support
Account
SP2010
  

Sharepoint Studio > People & Blogs > Mark Stokes > Posts > Adding Automatic SharePoint XML Intellisense to Visual Studio
Adding Automatic SharePoint XML Intellisense to Visual Studio
Adding intellisense to Visual Studio for SharePoint based XML files (such as Feature.Xml files) is pretty easy. 
 
Open up the following directory (this is assuming Visual Studio 2008)
C:\Program Files\Microsoft Visual Studio 9.0\Xml\Schemas\
 
Add a new file called SharePointCatalog.xml
 
Add the following XML to that file:

<SchemaCatalog xmlns="http://schemas.microsoft.com/xsd/catalog">

<Schema href="file://c:/Program Files/Common Files/Microsoft Shared/web server extensions/12/TEMPLATE/XML/wss.xsd" targetNamespace="http://schemas.microsoft.com/sharepoint/"/>

<Schema href="file://c:/Program Files/Common Files/Microsoft Shared/web server extensions/12/TEMPLATE/XML/CamlQuery.xsd" targetNamespace="http://schemas.microsoft.com/sharepoint/"/>

<Schema href="file://c:/Program Files/Common Files/Microsoft Shared/web server extensions/12/TEMPLATE/XML/CamlView.xsd" targetNamespace="http://schemas.microsoft.com/sharepoint/"/>

<Schema href="file://c:/Program Files/Common Files/Microsoft Shared/web server extensions/12/TEMPLATE/XML/CoreDefinitions.xsd" targetNamespace="http://schemas.microsoft.com/sharepoint/"/>

</SchemaCatalog>

 
Save the file and restart Visual Studio.  Now you should automatically get SharePoint XML Intellisense.

Comments

There are no comments yet for this post.