tags:

views:

101

answers:

2

We are using Resharper 4.5 and StyleCop 4.3.

We have a project with many .CS files in it. All .CS files have valid headers, as defined by our StyleCop settings, and added automatically by Resharper's Insert/replace header action.

Four of the .CS files receive a SA1636 warning. The copyright text exactly matches the declared copyright text from the settings file.

Has anyone else experienced this problem? Is there any kind of diagnostic logging that we can enable or otherwise use to help determine why this one rule appears to be mis-firing?

A: 

Check the encoding format using something like notepad or visual studio Save As - mine was encoding with the wrong character set.

Adrian Williams
A: 

Could someone give me more details on diagnosing the cause of this error? We have exactly the same situtation on our project but I don't know how to look for the hidden unicode characters.

Val M
Copy the string out to a text editor that supports a binary view of the data.
dnorthut
Thanks, dnorthut. I've done that now and sure enough our problem was the same cause.
Val M