Share via


CA1703: Resource strings should be spelled correctly

Note

This article applies to Visual Studio 2015. If you're looking for the latest Visual Studio documentation, see Visual Studio documentation. We recommend upgrading to the latest version of Visual Studio. Download it here

Item Value
TypeName ResourceStringsShouldBeSpelledCorrectly
CheckId 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.

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.

By default, the English (en) version of the spelling checker is used.

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.

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.

CA1701: Resource string compound words should be cased correctly

CA1704: Identifiers should be spelled correctly

CA2204: Literals should be spelled correctly