Partilhar via


CA1703: Resource strings should be spelled correctly

Item Value
RuleId CA1703
Category Microsoft.Naming
Breaking change Non-breaking

Cause

A resource string contains one or more words that are not recognized by the Microsoft spelling checker library.

Note

This rule has been deprecated. For more information, see Deprecated rules.

Rule description

This rule parses the resource string into words (tokenizing compound words) and checks the spelling of each word/token. For information about the parsing algorithm, see CA1704: Identifiers should be spelled correctly.

How to fix violations

To fix a violation of this rule, use complete words that are correctly spelled or add the words to a custom dictionary. For information about how to use custom dictionaries, see CA1704: Identifiers should be spelled correctly.

Change the dictionary language

By default, the English (en) version of the spelling checker is used. If you want to change the language of the spelling checker, you can do so by adding one of the following attributes to your AssemblyInfo.cs or AssemblyInfo.vb file:

Important

If you set the culture to anything other than an English-based culture, this code analysis rule is silently disabled.

When to suppress warnings

Do not suppress a warning from this rule. Correctly spelled words reduce the time that is required to learn new software libraries.