NeutralResourcesLanguage Usage

The following is the wording from the generated AssemblyInfo file. Does this mean that MS recommends modifying the .csproj file manually? On assignment?

If this is a setting, then which NeutralResourcesLanguage attribute is used? How should you access it in code.

Cheers
Berryl

//In order to begin building localizable applications, set //<UICulture>CultureYouAreCodingWith</UICulture> in your .csproj file //inside a <PropertyGroup>. For example, if you are using US english //in your source files, set the <UICulture> to en-US. Then uncomment //the NeutralResourceLanguage attribute below. Update the "en-US" in //the line below to match the UICulture setting in the project file. //[assembly: NeutralResourcesLanguage("en-US", UltimateResourceFallbackLocation.Satellite)] 
+4
source share
1 answer

This attribute (not a parameter) can be defined in the project properties, for example

  • In Solution Explorer, right-click the project and select Properties.
  • In the left navigation bar, select "Application" and then "Assembly Information".
  • In the Assembly Information dialog box, select a language from the Neutral Language drop-down list.
  • Click OK.
+7
source

Source: https://habr.com/ru/post/1386536/


All Articles