visual studio - Code Analysis/FxCop CA1726:UsePreferredTerms showing Cancelled as Deprecated -


i'm in uk spell cancelled 2 l's. want use code analysis rule "ca1726:usepreferredterms" don't want flag "cancelled" violation.

i have tried adding <codeanalysisculture>en-gb</codeanalysisculture> project file encourage code analysis use british spelling

i have tried adding <recognized><word>cancelled</word></recognized> projects customdictionary.xml

i'm not keen on adding suppression every time word cancelled used.

i want solution can checked source control other developers work on don't want change local c:\program files (x86)\microsoft visual studio 12.0\team tools\static analysis tools\fxcop\customdictionary.xml

i using visual studio 2013.

is there way achieve this?

as suspect know, there's no built in way achieve this. overriding built in custom dictionary has been raised before in various forms same conclusion, can't override/reset custom dictionary. it's low priority item, since there work around, edit customdictionary.xml comes visual studio.

if you're using fxcopcmd part of build process analysis, 1 option seems work copy "fxcop" folder folder (such tools\fxcop) part of checked in project. build process use executable, rather on in "program files". since copied folder has default customdictionary.xml in it, able edit part of source controlled project. may possible similar thing visual studio, can't see obvious way change runs code analysis from.

depending on work setup , approach development, simpler solution may rename visual studio installed "customdictionary.xml" "customdictionary.xml.bak" on of developers machines , copy contents of (minus bits don't want) solutions "customdictionary.xml". give complete control. isn't ideal because effect projects work on on machine, may have add custom dictionary multiple times , of course each developer have deal it, possible modify build process check presence of default customdictionary , remind developers needed rename build work correctly.

if can fxcop gui download , install (i couldn't) there may other workarounds using ".fxcop" project file, including searchfxcopdir="false". however, again understand isn't going make difference visual studio experience.


Comments

Popular posts from this blog

apache - PHP Soap issue while content length is larger -

asynchronous - Python asyncio task got bad yield -

javascript - Complete OpenIDConnect auth when requesting via Ajax -