Skip to content

Commit

Permalink
Enable invariant globalization
Browse files Browse the repository at this point in the history
  • Loading branch information
austinv900 committed Sep 7, 2023
1 parent 2acb382 commit 89ac0d8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
1 change: 1 addition & 0 deletions src/Oxide.Compiler.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
<PackageProjectUrl>https://github.com/OxideMod/Oxide.Compiler</PackageProjectUrl>
<PackageIcon>icon.png</PackageIcon>
<RepositoryUrl>https://github.com/OxideMod/Oxide.Compiler</RepositoryUrl>
<InvariantGlobalization>true</InvariantGlobalization>
</PropertyGroup>
<ItemGroup>
<Content Include="icon.ico" />
Expand Down
7 changes: 1 addition & 6 deletions src/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,7 @@ internal class Program
public const bool DEBUG = false;
#endif

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

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

0 comments on commit 89ac0d8

Please sign in to comment.