Answered by:
Unwanted syntax changes to FxCop file

Question
-
I have already asked this question on Stack Overflow but it has not received any attention. I'm not sure which forum it should go in on MSDN, so posting it here.
We use FxCop on our project. All of our code is in C#.
When some developers make FxCop changes (e.g. remove suppressions) many unwanted changes are made to the FxCop file. For other developers, this does not happen.
This is an example of a portion of the file before making changes (this portion is unrelated to the changes we wanted to make):
<Member Name="#Bar`1(!!0,!!0)"> <Messages> <Message Id="Bar" TypeName="IdentifiersShouldBeCasedCorrectly" Category="Microsoft.Naming" CheckId="CA1709" Status="Excluded" > <Issue Name="Member"> <Item>Bar</Item> <Item>Foo.Bar<T>(T, T)'</Item> <Item>Bar</Item> </Issue> </Message> </Messages> </Member> <Member Name="#Bar(System.Int32,System.Int32)"> <Messages> <Message Id="Bar" TypeName="IdentifiersShouldBeCasedCorrectly" Category="Microsoft.Naming" CheckId="CA1709" Status="Excluded" > <Issue Name="Member"> <Item>Bar</Item> <Item>Foo.Bar(int, int)'</Item> <Item>Bar</Item> </Issue> </Message> </Messages> </Member>
Afterwards, the same section looks like this:
<Member Name="#Bar`1(!!0,!!0)"> <Messages> <Message Id="Bar" TypeName="IdentifiersShouldBeCasedCorrectly" Category="Microsoft.Naming" CheckId="CA1709" Status="Excluded" > <Issue Name="Member"> <Item>Bar</Item> <Item>Foo.Bar(Of T)(T, T)'</Item> <Item>Bar</Item> </Issue> </Message> </Messages> </Member> <Member Name="#Bar(System.Int32,System.Int32)"> <Messages> <Message Id="Bar" TypeName="IdentifiersShouldBeCasedCorrectly" Category="Microsoft.Naming" CheckId="CA1709" Status="Excluded" > <Issue Name="Member"> <Item>Bar</Item> <Item>Foo.Bar(Integer, Integer)'</Item> <Item>Bar</Item> </Issue> </Message> </Messages> </Member>
So it looks like C# syntax is being changed to VB.NET syntax throughout (e.g. becomes (Of T), int becomes Integer).
The number of changes makes it almost impossible to see what changes were actually made when looking at the diff.
We are all on the same version of FxCop. We've looked through the settings and found nothing we could change, tried re-installing, Googled aplenty... does anyone have any suggestions on what might be causing this?
Monday, April 18, 2016 10:21 AM
Answers
-
The two forums that seem to have the most activity on FxCop are:
.NET Framework Class Libraries
https://social.msdn.microsoft.com/Forums/en-US/home?forum=netfxbcl
and Visual Studio Code Analysis and Code Metrics
https://social.msdn.microsoft.com/Forums/en-US/home?forum=vstscode
Good luck!
Sam Lester (MSFT)
This posting is provided "AS IS" with no warranties, and confers no rights. Please remember to click "Mark as Answer" and "Vote as Helpful" on posts that help you. This can be beneficial to other community members reading the thread.- Proposed as answer by Dave PatrickMVP Monday, April 18, 2016 12:16 PM
- Marked as answer by MandarinBen Monday, April 18, 2016 2:10 PM
Monday, April 18, 2016 11:48 AM
All replies
-
The two forums that seem to have the most activity on FxCop are:
.NET Framework Class Libraries
https://social.msdn.microsoft.com/Forums/en-US/home?forum=netfxbcl
and Visual Studio Code Analysis and Code Metrics
https://social.msdn.microsoft.com/Forums/en-US/home?forum=vstscode
Good luck!
Sam Lester (MSFT)
This posting is provided "AS IS" with no warranties, and confers no rights. Please remember to click "Mark as Answer" and "Vote as Helpful" on posts that help you. This can be beneficial to other community members reading the thread.- Proposed as answer by Dave PatrickMVP Monday, April 18, 2016 12:16 PM
- Marked as answer by MandarinBen Monday, April 18, 2016 2:10 PM
Monday, April 18, 2016 11:48 AM -
Thank you Sam. Could you move this question to:
Visual Studio Code Analysis and Code Metrics
https://social.msdn.microsoft.com/Forums/en-US/home?forum=vstscode
Less active than the other forum you suggested, but looks more appropriate...
Monday, April 18, 2016 1:17 PM