Click to Rate and Give Feedback
MSDN
MSDN Library
Visual Studio .NET
 Neutral Resources Languages for Loc...
This page is specific to
Microsoft Visual Studio 2003/.NET Framework 1.1

Other versions are also available for the following:
Visual Basic and Visual C# Concepts
Neutral Resources Languages for Localization

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.

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

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

See Also

ResourceManager Class | Introduction to International Applications in Visual Basic and Visual C# | Hierarchical Organization of Resources for Localization | Localizing Applications | Globalizing and Localizing Applications

© 2009 Microsoft Corporation. All rights reserved. Terms of Use | Trademarks | Privacy Statement | Site Feedback
Page view tracker