Compartir a través de


Neutral Resources Languages for Localization

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

The NeutralResourcesLanguageAttribute class specifies the culture of the resources included in the main assembly. This attribute is used as a performance enhancement, so that the ResourceManager object does not search for resources that are included in the main assembly.

The following code shows how to set the neutral resources language. The code can be placed in either a build script or in the AssemblyInfo.vb or AssemblyInfo.cs file.

' Set neutral resources language for assembly.
<Assembly: NeutralResourcesLanguageAttribute("en")>

// Set neutral resources language for assembly.
[assembly: NeutralResourcesLanguageAttribute("en")]

See Also

ResourceManager Introduction to International Applications Based on the .NET Framework Hierarchical Organization of Resources for Localization Localizing Applications Globalizing and Localizing Applications