0

Resharper suppress warnings with comments not working with Team City 8.0.6

When we use Resharper (7.1)  in Visual studio 2012, we make use of the  "Suppress Inspection with Comment" option to suppress some of the  warnings. This woulr result in something like :-


//ReSharper disable UnusedMember.Global
public String MyProperty{ get; set; }
//ReSharper restore UnusedMember.Global

This  works fine in Visual Studio 2012 IDE. But when the code gets compiled  in Continuos Integration Server - Team City Server (v 8.0.6) [using  Inspections.NET plugin] , team city does not seem to suppress these  warnings. Rather,  these warnings are replaced  with warnings

"Potential Code quality issues : Use ////-comment"

at the lines //ReSharper disable UnusedMember.Global and //ReSharper restore UnusedMember.Global respectively.

Please refer the attached schreen shot.

Can anyone point me what is going wrong and why is such a discrepency reported in Team City?

Our environment :-
Visual Studio 2012
Resharper 7.1
Team City 8.0.6

Cheers,
Priya



Attachment(s):
TeamCityError.png

1 comment

Please sign in to leave a comment.