From 0b927b675fe926bd6b97f8797bc998094a5ba68c Mon Sep 17 00:00:00 2001
From: lc6464 <64722907+lc6464@users.noreply.github.com>
Date: Thu, 30 May 2024 11:22:19 +0800
Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E4=BB=A3=E7=A0=81=EF=BC=9B?=
=?UTF-8?q?=E4=BF=AE=E6=94=B9=20README?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
Base16384.Net.csproj | 2 +-
Helpers.cs | 4 +++-
Program.cs | 14 ++------------
README.md | 4 +++-
4 files changed, 9 insertions(+), 15 deletions(-)
diff --git a/Base16384.Net.csproj b/Base16384.Net.csproj
index 7c6c76f..3480f95 100644
--- a/Base16384.Net.csproj
+++ b/Base16384.Net.csproj
@@ -4,7 +4,7 @@
net8.0
enable
enable
- 2.0.0-RC.1
+ 2.0.0
x64
diff --git a/Helpers.cs b/Helpers.cs
index c04bc82..8d708c3 100644
--- a/Helpers.cs
+++ b/Helpers.cs
@@ -3,8 +3,10 @@
namespace ConsoleHelpers;
public static class Helpers {
+ public static readonly CultureInfo cultureInfoEnUs = new("en-US", false);
+
public static readonly string? debugEnv = Environment.GetEnvironmentVariable("Base16384_Net_Debug");
- public static readonly bool DEBUG = !string.IsNullOrWhiteSpace(debugEnv) && debugEnv.ToLower(new CultureInfo("en-US", false)) is not "false" and not "0";
+ public static readonly bool DEBUG = !string.IsNullOrWhiteSpace(debugEnv) && debugEnv.ToLower(cultureInfoEnUs) is not "false" and not "0";
public static int PrintErrorMessage(string? message, string? debugMessage = null, int exitCode = 0) {
diff --git a/Program.cs b/Program.cs
index d027a1e..c4afd6b 100644
--- a/Program.cs
+++ b/Program.cs
@@ -1,15 +1,5 @@
-// 新的解析方式:Base16384.Net.exe <"e" | "d">