I have a problem that only occurs when starting a Windows Phone app on a device where I'm using code from this forms example: https://developer.xamarin.com/guides/xamarin-forms/advanced/localization/
Only when running on a Windows Phone device I get this error using CultureInfo, but not on a emulator. Every evaluation of CultureInfo related expressions result this:
error CS0012: The type 'CultureInfo' is defined in an assembly that is not referenced. You must add a reference to assembly 'System.Globalization, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'.
So even the simple CultureInfo.CurrentCulture will evaluate to this error. It's actually not leading to an exception though untill a CultureInfo object is passed into the ResourceManager for retrieving a translation.
I feel my lack of understanding how the PCL's and binding works exactly is impeding me to find a solution here. I've reproduced the problem in a small project which can be found on: https://github.com/ferrydeboer/WPCrashForms
I'd like to know if somebody can repro this problem with the WinPhone project on a Windows Device. The crashes occur both on Windows Phone 8.1 and Windows 10 devices.