This chapter contains the following code samples:
- NumberAndDateFormatting (localized format strings)
- SortingDemo (sorting with different cultures and using the invariant culture)
- CreateResource (using
ResourceReaderandResourceWriter) - UWPCultureDemo (showing all cultures and regions with a UWP application)
- ResourcesDemo (accessing resources using
ResourceManager) - WebApplication (using
CultureInfoandIStringLocalizerwith ASP.NET Core) - ASPNETCoreMVCSample (localizing with controllers, views, and data annotations)
- UWPLocalization (localizing with UWP and XLF)
To build and run the .NET Core samples, please install one of these tools:
- Visual Studio 2017 Update 5 with the .NET Core workload
- Visual Studio for Mac
- Visual Studio Code
The UWPLocalization and UWPCultureDemo samples needs Windows 10 and Visual Studio 2017 with the Universal Windows Platform development workload. The other samples can be used on other platforms. The UWPCultureDemo uses a TreeView control. This sample has been updated with Windows 10 April 2018 Update (version 1803) and no longer uses the C++ sample TreeView, but you need at least Windows 10 April 2018 Update.
Please download and install the tools from .NET Core downloads.
For code comments and issues please check Professional C#'s GitHub Repository
Please check my blog csharp.christiannagel.com for additional information for topics covered in the book.
Thank you!