Skip to content

Commit

Permalink
Fix requirement for globalisation dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
0x89A committed Sep 7, 2023
1 parent 460caba commit 62f77cc
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,11 @@ internal class Program
public const bool DEBUG = false;
#endif

public static void Main(string[] args) => new ApplicationBuilder()
public static void Main(string[] args)
{
Environment.SetEnvironmentVariable("DOTNET_SYSTEM_GLOBALIZATION_INVARIANT", "1");

new ApplicationBuilder()
.WithConfiguration((config) => config.AddCommandLine(args, new Dictionary<string, string>(StringComparer.InvariantCultureIgnoreCase)
{
["-l:file"] = "Logging:FileName",
Expand Down Expand Up @@ -77,5 +81,6 @@ internal class Program
.AddTransient<MetadataReferenceResolver, OxideResolver>())
.Build()
.Start();
}
}
}

0 comments on commit 62f77cc

Please sign in to comment.