ReSharper 可以正确解析 SharePoint 布局吗?

发布于 2024-09-24 11:59:06 字数 273 浏览 7 评论 0原文

我正在 Visual Studio 2010 中创建 SharePoint 2010 功能。

虽然 ReSharper 是编写代码的宝贵工具,但它会报告大量错误(所有与服务器相关的图像引用、母版页引用、ContentPlaceHolderID 的引用)到母版页等)在 .aspx 布局定义中。我必须从 ReSharper 中完全排除母版页,因为它挂起了 VS 进程 - 然而,之前也报告过错误。

是否有一种“聪明”的方法来配置它以正确解析这些文件?

I am creating a SharePoint 2010 feature in Visual Studio 2010.

While ReSharper is a valuable tool for writing code, it reports lots of errors (all server-relative image references, master page reference, ContentPlaceHolderID's referring to the master page and so on) in .aspx layout definitions. I had to exclude the master page from ReSharper completely, as it was hanging the VS process - however, the errors were reported before as well.

Is there a 'clever' way of configuring it to correctly parse those files?

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

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

发布评论

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

评论(2

审判长 2024-10-01 11:59:06

如前所述,R# 不提供对 SharePoint 应用程序和母版页的支持。该问题是因为 SharePoint 使用其他方法来引用程序集以及 ASP.NET 虚拟路径提供程序的 SharePoint 特定实现。因此,R# 无法找到渲染整个 SharePoint 网站所需的所有依赖项。

JetBrains 将必须重现 SharePoint Designer 行为。

托尔斯滕

As mentioned earlier, R# has offers no support for SharePoint Application- and MasterPages. The issue is because SharePoint is using an other approach to reference assembies and because of the SharePoint specific implementation of the ASP.NET virtual path provider. So R# isn't able to locate all the required dependencies which are required to render an entire SharePoint site.

JetBrains will have to reproduce the SharePoint Designer behavior.

Thorsten

诠释孤独 2024-10-01 11:59:06

ReSharper 7 (仍处于测试阶段)现在支持 SharePoint。 ReSharper 7 可识别 SharePoint 特定的母版页、资源、样式表和 JavaScript 文件。

ReSharper 7 (still in beta) supports SharePoint now. ReSharper 7 understands SharePoint-specific master pages, resources, style sheets and JavaScript files.

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