|
Sharepoint Studio > People & Blogs > Mark Stokes > Posts > Adding Automatic SharePoint XML Intellisense to Visual Studio
|
8/27/2009Adding 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. |
|
|
|
|
|
|