All rules
CA1824Performance Enabled by default: As suggestion

Mark assemblies with NeutralResourcesLanguageAttribute

Mark assemblies with NeutralResourcesLanguageAttribute

Microsoft docs

Description

The System.Resources.NeutralResourcesLanguageAttribute attribute informs the resource manager of an app's default culture. If the default culture's resources are embedded in the app's main assembly, and System.Resources.ResourceManager has to retrieve resources that belong to the same culture as the default culture, the System.Resources.ResourceManager automatically uses the resources located in the main assembly instead of searching for a satellite assembly. This bypasses the usual assembly probe, improves lookup performance for the first resource you load, and can reduce your working set. See Package and deploy resources for the process that System.Resources.ResourceManager uses to probe for resource files.

Cause

An assembly contains a ResX-based resource but does not have the System.Resources.NeutralResourcesLanguageAttribute applied to it.

Example

#pragma warning disable CA1824
// The code that's violating the rule is on this line.
#pragma warning restore CA1824

When to suppress

It's permissible to suppress a warning from this rule. However, startup performance might degrade. To suppress this warning, add dotnet_diagnostic.CA1824.severity = none to your *.globalconfig* or *.editorconfig* file.

Group results
0 yes 0 no
ConsensusNone (disabled)
Severity preference (yes voters)
Suggestion0
Warning0
Error0