Ιανουάριος 2010 - Δημοσιεύσεις

Resharper and RIA Services

(The following are applicable to current Resharper and RIA Services releases (see post date). I'm sure it will be fixed in the future)

Watch it RIA Service users that use Resharper!
RIA Services has a strange way (personal opinion) of doing code generation for references services, instead of using the traditional Service Reference approach. Actually, regardless of Resharper and the problem I'm describing underneath, when I first saw a RIA Services application I was really wondering how this works.
And it seems that Resharper is "wondering" also! That's why if you are using Resharper code inspection and/or intellisense you will notice that the classes that are supposed to be generated by RIA Services are not "visible" in your project. Actually if you do nothing, but just create a new 'Silverlight Business Application' using the Visual Studio template and open then App.xaml.cs you will see the picture bellow.
To fix this you have two options:
  • Disable Resharper completely (Tools>Add-in Manager in Visual Studio)
  • Disable Code Inspection and Intellisense of Resharper and let the Visual Studio do it:
    1. Resharper>Options in Visual Studio...
    2. Environment>Intellisense>General
    3. and Code Inspection>Settings

Permalink | Leave a comment  »