配置WSS 3.0 VS开发环境的CAML智能感知
2008-07-28 17:41
417 查看
原文地址
Configuring IntelliSense with CAML Files When Developing for Windows SharePoint Services 3.0
Applies to: Windows SharePoint Services 3.0, Microsoft Office SharePoint Server 2007, Microsoft Visual Studio 2005.
Ted Pattison, Ted Pattison Group
May 2007
Configuring IntelliSense with CAML Files When Developing for Windows SharePoint Services 3.0
Applies to: Windows SharePoint Services 3.0, Microsoft Office SharePoint Server 2007, Microsoft Visual Studio 2005.
Ted Pattison, Ted Pattison Group
May 2007
When developing for Windows SharePoint Services 3.0, you are often required to create and modify XML files that contain Collaborative Application Markup Language (CAML). It is recommended that you configure Microsoft Visual Studio on your development workstation to reference a XML schema file named WSS.XSD so that IntelliSense works properly when working with CAML-based files. Create a new text file and name it CAML.xml. Add the following code. 创建一个文本文件并命名为CAML.xml(记得另存为UTF-8格式),增文本编辑器中增加如下代码 Xml 复制代码 <SchemaCatalog xmlns="http://schemas.microsoft.com/xsd/catalog"> <Schema href="C:\Program Files\Common Files\Microsoft Shared\ web server extensions\12\TEMPLATE\XML\wss.xsd" targetNamespace="http://schemas.microsoft.com/sharepoint/"/> </SchemaCatalog>
这片文章中介绍了在VS8,也就是VS2005的配置方法。 Next, save CAML.XML to C:\Program Files\Microsoft Visual Studio 8\Xml\Schemas\CAML.xml. 在VS9,即VS2008中,应保存在\program files (x86)\Microsoft Visual Studio 9.0\Xml\Schemas下 Shut down and restart Visual Studio. At this point, IntelliSense should be available whenever you work with CAML-based files that rely on the http://schemas.microsoft.com/sharepoint/ namespace. Visual Studio has a special directory (C:\Program Files\Microsoft Visual Studio 8\Xml\Schemas\CAML.xml) that it uses to maintain a catalog of XML schemas that drive its IntelliSense feature. The installation of Visual Studio adds to this directory a standard file named catalog.xml that contains XML that references standard XML schemas. These schemas drive the default IntelliSense support that is included as part of Visual Studio. However, this mechanism is completely extensible. You can simply create another file with an .xml extension that references other, non-standard XML schemas and copy the file to the same directory. After copying this file to the correct location, you must restart Visual Studio. That's because Visual Studio examines all the XML files in this directory at startup to determine which XML schemas it should load to drive IntelliSense. |
相关文章推荐
- MSDN Visual系列:在SharePoint开发环境中配置CAML语法的智能感知
- MSDN Visual系列:在SharePoint开发环境中配置CAML语法的智能感知
- 在SharePoint开发环境中配置CAML语法的智能感知
- [转] VS.NET 2005 开发微软智能手机SmartPhone Window Mobile 5.0 开发环境配置指南
- 【OpenCV入门教程之一】 安装OpenCV:OpenCV 3.0、OpenCV 2.4.8、OpenCV 2.4.9 +VS 开发环境配置
- 安装OpenCV:OpenCV 3.0、OpenCV 2.4.8、OpenCV 2.4.9 +VS 开发环境配置
- 安装OpenCV:OpenCV 3.0、OpenCV 2.4.8、OpenCV 2.4.9 +VS 开发环境配置
- 【OpenCV入门教程之一】 安装OpenCV:OpenCV 3.0、OpenCV 2.4.8、OpenCV 2.4.9 +VS 开发环境配置
- 【OpenCV入门教程之一】 安装OpenCV:OpenCV 3.0、OpenCV 2.4.8、OpenCV 2.4.9 +VS 开发环境配置
- 【OpenCV入门教程之一】 安装OpenCV:OpenCV 3.0、OpenCV 2.4.8、OpenCV 2.4.9 +VS 开发环境配置
- 【OpenCV入门教程之一】 安装OpenCV:OpenCV 3.0、OpenCV 2.4.8、OpenCV 2.4.9 +VS 开发环境配置
- 【OpenCV入门教程之一】 安装OpenCV:OpenCV 3.0、OpenCV 2.4.8、OpenCV 2.4.9 +VS 开发环境配置
- 【OpenCV入门教程之一】 安装OpenCV:OpenCV 3.0、OpenCV 2.4.8、OpenCV 2.4.9 +VS 开发环境配置
- 【OpenCV入门教程之一】 安装OpenCV:OpenCV 3.0、OpenCV 2.4.8、OpenCV 2.4.9 +VS 开发环境配置
- 安装OpenCV:OpenCV 3.0、OpenCV 2.4.8、OpenCV 2.4.9 +VS 开发环境配置(永久配置)
- 【OpenCV入门教程之一】 安装OpenCV:OpenCV 3.0、OpenCV 2.4.8、OpenCV 2.4.9 +VS 开发环境配置
- 【OpenCV入门教程之一】 安装OpenCV:OpenCV 3.0、OpenCV 2.4.8、OpenCV 2.4.9 +VS 开发环境配置
- 【OpenCV入门教程之一】 安装OpenCV:OpenCV 3.0、OpenCV 2.4.8、OpenCV 2.4.9 +VS 开发环境配置
- 安装OpenCV:OpenCV 3.0、OpenCV 2.4.8、OpenCV 2.4.9 +VS 开发环境配置
- 安装OpenCV:OpenCV 3.0、OpenCV 2.4.8、OpenCV 2.4.9 +VS 开发环境配置