Problem with Resharper Integration and SA1101

Jun 29, 2011 at 3:23 PM

Whilst using resharper 5.1 and StyleCop  4.5.24.0 in VS2010 premium, I encountered message:

Warning    27    SA1101: The call to lblFRED must begin with the 'this.' prefix to indicate that the item is a member of the class.    

The line concerned is:

          lblFRED.Text = string.Empty;

The Resharper integration did not highlight this line as having an error (lblFRED is a win forms label control).

If I change the line

        this.lastFRED = this.txtFRED.Text;

to

        lastFRED = this.txtFRED.Text;

then the SA1101 green squiggle appears.

Coordinator
Jun 29, 2011 at 8:25 PM

Hi,

Can you open a bug and attach the files causing the issue please and it'll get fixed in 5.0.

Jul 3, 2011 at 6:50 PM

Issue report opened at http://stylecop.codeplex.com/workitem/7048