Where's My Intellisense?
By default even after installing WSS on your development machine you won't have any intellisense for XML files in Visual Studio 2008. This will probably change when they release the WSS extensions for VS 2008 but until then you have to get your hands a little dirty.
Enabling Intellisense in Visual Studio 2008
You have a couple of options so here they are:
- If you already have WSS installed on your development machine then you simply need to create a new file (call it sharepoint.xml) and place it in the Program Files\Microsoft Visual Studio 9.0\Xml\Schemas directory and then place the following XML in it. Now Restart Visual Studio.
<Schema href="%CommonProgramFiles%/Microsoft Shared/web server extensions/12/TEMPLATE/XML/wss.xsd" targetNamespace="http://schemas.microsoft.com/sharepoint/" />
- Your Second option (if you don't have WSS installed) is do the option above, AND THEN to download this file (the missing wss.xsd) and place it in the C:\Program Files\Common Files\Microsoft Shared\web server extensions\12\TEMPLATE\XML directory (create it if you don't have it or modify the path in the first step to point to wherever you want to put it. Now Restart Visual Studio.
Done! The next time you open up an XML file and specify the xmlns you should see SharePoint as an option and after selecting it you should have full intellisense (as soon as the xmlns gets specified).
Hope that helps