English 中文(简体)
Can ReSharper properly parse SharePoint layouts?
原标题:

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?

最佳回答

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 (still in beta) supports SharePoint now. ReSharper 7 understands SharePoint-specific master pages, resources, style sheets and JavaScript files.





相关问题
Resharper Exception rethrow possibly intended

Consider this method (pardon the sad attempt at Chuck Norris humor :) ): public class ChuckNorrisException : Exception { public ChuckNorrisException() { } public ChuckNorrisException(...

Resharper Auto Complete Statement

I know it s probably something easy, but I just couldn t figure it out. Say I have the following code string name; name.LastIndexOf("aaa"); After I type the single quote Resharper will added ...

Resharper Suggestion Color Issue

I have a strange bug in resharper 4.5 in VS 2005. Instead of doing the usual underline for a suggestion -- IE: telling me that a using statement is unnecessary, it is setting the background to red in ...

StyleCop for ReSharper

I like stylecop and we use it to enforce coding standards. I dont like the fact that there is no way to automatically fix problems. So was thinking of making a plugin. Once I realised that 2010 is ...

How to repair Resharper?

I have problem with Resharper - all it s menu options are greyed, no shortcuts working... I ve tried run installer with repair option - no success Also tried uninstall / install back - same.. :( ...

Shortcut to turn on Resharper

Usually I start VS2008 without Resharper because it makes VS startup way too slow and I just need to fix a bug. But sometimes, I do want to turn on Resharper. Is there a way to setup a keyboard ...

热门标签