Globalization Rules rule set for managed code


For the latest documentation on Visual Studio 2017, see Visual Studio 2017 Documentation.

You can use the Microsoft Globalization Rules rule set to focus on problems that might prevent data in your application from appearing correctly in different languages, locales, and cultures. You should include this rule set if your application is localized, globalized, or both.

CA1300Specify MessageBoxOptions
CA1301Avoid duplicate accelerators
CA1302Do not hardcode locale specific strings
CA1303Do not pass literals as localized parameters
CA1304Specify CultureInfo
CA1305Specify IFormatProvider
CA1306Set locale for data types
CA1307Specify StringComparison
CA1308Normalize strings to uppercase
CA1309Use ordinal StringComparison
CA2101Specify marshaling for P/Invoke string arguments