Attempt to fix build tool running on system with different locales

#554
This commit is contained in:
Wojtek Figat
2021-06-18 21:54:31 +02:00
parent 94f50ce8cb
commit bf1a30c5c6

View File

@@ -2,6 +2,7 @@
using System;
using System.Diagnostics;
using System.Globalization;
using System.IO;
using System.Net;
using System.Threading;
@@ -17,6 +18,10 @@ namespace Flax.Build
// Setup
ServicePointManager.Expect100Continue = true;
ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls12;
var culture = CultureInfo.InvariantCulture;
CultureInfo.DefaultThreadCurrentCulture = culture;
CultureInfo.DefaultThreadCurrentUICulture = culture;
Thread.CurrentThread.CurrentCulture = culture;
// Show help option
if (CommandLine.HasOption("help"))