1

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?

Simon Adcock
  • 3,554
  • 3
  • 25
  • 41
skolima
  • 31,963
  • 27
  • 115
  • 151
  • 1
    Nope. R# has never worked with SharePoint layouts or controls, 2007 or 2010. – bzlm Sep 28 '10 at 11:36
  • Hi, Thanks for the post. I'll try to reproduce this strange behavior ASAP and ll let you know about results. – KFalk Sep 28 '10 at 11:37
  • Hi. You're welcome to try out our internal ReSharper 7.0 EAP build with SharePoint support from http://download.jetbrains.com/resharper/ReSharperSetup.7.0.47.83.msi. Any feedback will be very appreciated. Thanks! – KFalk May 21 '12 at 13:43

2 Answers2

1

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

Thorsten Hans
  • 2,675
  • 19
  • 21
  • I might upvote your answer if you stick to the facts and remove "I don't think that will happen". – John Saunders Jul 29 '11 at 19:30
  • 1
    ReSharper 7 (http://blogs.jetbrains.com/dotnet/2012/07/resharper-7-whats-inside/) understands SharePoint-specific master pages, resources, style sheets and JavaScript files. – Ahmed Atia Jul 12 '12 at 16:49
0

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

Ahmed Atia
  • 17,848
  • 25
  • 91
  • 133