From f0f8daf17054f8bfa5d95e65b766829287413618 Mon Sep 17 00:00:00 2001 From: Brayan Khosravian <35541212+BrayanKhosravian@users.noreply.github.com> Date: Thu, 22 Aug 2019 15:12:34 +0200 Subject: [PATCH] - Issue 7207 - if current culture of the current thread is not set to the invariant culture then initializing the app causes a "NUnit.Framework.InconclusiveException" with the exception- message "App did not start for some reason. System.Argument.Exception: 1 is not supported code page. Parameter name: codepage." (#7228) * - Issue 7207 - if current culture of the current thread is not set to the invariant culture then initializing the app causes a "NUnit.Framework.InconclusiveException" with the exception- message "App did not start for some reason. System.Argument.Exception: 1 is not supported code page. Parameter name: codepage." * - fixed usings --- .../Xamarin.Forms.Controls.Issues.Shared/TestPages/TestPages.cs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issues.Shared/TestPages/TestPages.cs b/Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issues.Shared/TestPages/TestPages.cs index 6f54b9a..e8ad6d1 100644 --- a/Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issues.Shared/TestPages/TestPages.cs +++ b/Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issues.Shared/TestPages/TestPages.cs @@ -217,6 +217,13 @@ namespace Xamarin.Forms.Controls IApp runningApp = null; try { + // Issue 7207 - if current culture of the current thread is not set to the invariant culture + // then initializing the app causes a "NUnit.Framework.InconclusiveException" with the exception- + // message "App did not start for some reason. System.Argument.Exception: 1 is not supported code page. + // Parameter name: codepage." + if(System.Threading.Thread.CurrentThread.CurrentCulture != System.Globalization.CultureInfo.InvariantCulture) + System.Threading.Thread.CurrentThread.CurrentCulture = System.Globalization.CultureInfo.InvariantCulture; + runningApp = InitializeApp(); } catch (Exception e) -- 2.7.4