I forced Code Analysis execution on VSTS (with Hosted2017 agent) to build a VS2017 solution using .NET framework 4.6.1. But I don't have the same spelling errors (CA1704 rule) on VSTS and on my machine with VS2017 Enterprise. On my machine, I fix all spelling errors. But on VSTS, I have more spelling errors !
MSBUILD : error CA1704: Microsoft.Naming : Correct the spelling of
How can I fix this problem ?
Ok, I found the problem. FxCop was executed in a different culture on my VS2017 (french) and on VSTS (english). I changed the language of my VS2017 in Options\Environment\InternationalSettings to English and restart VS2017. Now I get the same list of Code Analysis errors on VSTS and on my VS2017 !