You shouldn't need to use a custom dictionary for this. Instead, if you're using Canadian spellings consistently in your code base, you can use the CodeAnalysisCulture
MSBuild property to specify use of en-CA
as the language in which spelling rules should operate. e.g.:
<CodeAnalysisCulture>en-CA</CodeAnalysisCulture>
In order for Visual Studio to recognize the custom dictionary make sure you set the build action on the XML file to CodeAnalysisDictionary
. See this page for more info: To apply a custom dictionary to a project