有谁知道manifest.xml (wsp) 是否有 Visual Studio 的智能感知功能?

发布于 2024-07-15 16:36:08 字数 201 浏览 5 评论 0原文

在 SharePoint 解决方案 (wsp) 中编辑“manifest.xml”文件时,我一直在 Visual Studio 2005 或 Visual Studio 2008 中搜索智能感知,但没有结果。 有谁知道是否有类似于 CAML intellisense 的东西,但对于“manifest.xml”文件???

谢谢。

I've been searching for intellisense in Visual Studio 2005 or Visual Studio 2008 when editing "manifest.xml" file in a SharePoint solution (wsp) with no result. Does anybody know if there is something similar to CAML intellisense but for "manifest.xml" files???

Thanks.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

魂归处 2024-07-22 16:36:08

您可以通过添加对 c:\Program Files\Common Files\Microsoft Shared\web server extensions\12\Template\Xml 中包含的 wss.xsd、coredefinitions.xsd、CamlQuery.xsd 和 camlview.xsd 的架构引用来确保智能感知

。 ,在 VS.NET 中打开清单文件后,转到“属性”窗口,在“架构”属性中,您可以单击浏览按钮并加载这些架构。

如果你搜索 Google(我认为 Andrew Connell 有一个示例),也有一些方法可以强制每个 xml 文件发生这种情况。

You can ensure intellisense by adding schema references to wss.xsd, coredefinitions.xsd, CamlQuery.xsd and camlview.xsd contained in c:\Program Files\Common Files\Microsoft Shared\web server extensions\12\Template\Xml

TO do so, with your manifest file open in VS.NET, go to the Properties window, and in the Schemas property you can click the browse button and load these schemas.

If you search Google (I think Andrew Connell has a sample) there are ways to force this to occur for every xml file as well.

℡寂寞咖啡 2024-07-22 16:36:08

Visual Studio 中 XML 中的智能感知取决于文件夹中是否存在 XML 架构文件:

C:\Program Files\Microsoft Visual Studio 9.0\Xml\Schemas

(或您正在使用的版本的等效文件)。 因此,如果您可以找到这些文件的 XML 架构,则可以启用 Intellisense。

您需要的文件是 DeploymentManifest.xsd,如下所述:

http://msdn。 microsoft.com/en-us/library/bb263776.aspx

Intellisense in XML in Visual Studio depends on the presence of an XML schema file in the folder:

C:\Program Files\Microsoft Visual Studio 9.0\Xml\Schemas

(or the equivalent for the version you are using). So if you can find an XML schema for these files, you can enable Intellisense.

The file you need is DeploymentManifest.xsd, described here:

http://msdn.microsoft.com/en-us/library/bb263776.aspx

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文