|Important||This document may not represent best practices for current development, links to downloads and other resources may no longer be valid. Current recommended version can be found here.|
Mark assemblies with NeutralResourcesLanguageAttribute
An assembly contains a ResX-based resource but does not have the System.Resources.NeutralResourcesLanguageAttribute applied to it.
The NeutralResourcesLanguage attribute informs the ResourceManager of the language that was used to display the neutral culture's resources for an assembly. When it looks up resources in the same culture as the neutral resources language, the ResourceManager automatically uses the resources that are located in the main assembly. It does this instead of searching for a satellite assembly with the current user interface culture for the current thread. This improves lookup performance for the first resource you load and can reduce your working set.
To specify the language of the neutral culture’s resource
In Solution Explorer, right-click your project, and then Click Properties.
From the left navigation bar select Application, and then click Assembly Information.
In the Assembly Information dialog box, select the language from the Neutral Language drop-down list.