ReSharper 可以正确解析 SharePoint 布局吗?
我正在 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
如前所述,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
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.