diff --git a/ConsoleInteractive/ConsoleInteractive/ConsoleInteractive.csproj b/ConsoleInteractive/ConsoleInteractive/ConsoleInteractive.csproj
index 97defe7..d6aa374 100644
--- a/ConsoleInteractive/ConsoleInteractive/ConsoleInteractive.csproj
+++ b/ConsoleInteractive/ConsoleInteractive/ConsoleInteractive.csproj
@@ -9,7 +9,7 @@
ConsoleInteractivePrompt
https://github.com/breadbyte/ConsoleInteractive/blob/main/LICENSE
default
- net7.0;net8.0
+ net10.0
Library
false
diff --git a/ConsoleInteractive/ConsoleInteractive/InternalContext.cs b/ConsoleInteractive/ConsoleInteractive/InternalContext.cs
index f1816ea..000d670 100644
--- a/ConsoleInteractive/ConsoleInteractive/InternalContext.cs
+++ b/ConsoleInteractive/ConsoleInteractive/InternalContext.cs
@@ -27,11 +27,9 @@ internal static bool SuppressInput {
internal static void SetCursorVisible(bool visible) {
// It's useful to have the cursor visible in debug situations
- #if DEBUG
- return;
- #endif
-
+ #if !DEBUG
Console.CursorVisible = visible;
+ #endif
}
[GeneratedRegex("\\u001B\\[[\\d;]+m", RegexOptions.Compiled)]
@@ -40,4 +38,4 @@ internal static void SetCursorVisible(bool visible) {
[GeneratedRegex("(§([0-9a-fk-or]|(?:§[0-9a-fr])))", RegexOptions.Compiled)]
private static partial Regex GetFormatRegex();
}
-}
\ No newline at end of file
+}
diff --git a/ConsoleInteractive/ConsoleInteractiveDemo/ConsoleInteractiveDemo.csproj b/ConsoleInteractive/ConsoleInteractiveDemo/ConsoleInteractiveDemo.csproj
index 137eee8..d74e673 100644
--- a/ConsoleInteractive/ConsoleInteractiveDemo/ConsoleInteractiveDemo.csproj
+++ b/ConsoleInteractive/ConsoleInteractiveDemo/ConsoleInteractiveDemo.csproj
@@ -5,7 +5,7 @@
false
enable
default
- net7.0
+ net10.0
diff --git a/global.json b/global.json
new file mode 100644
index 0000000..7bc637b
--- /dev/null
+++ b/global.json
@@ -0,0 +1,6 @@
+{
+ "sdk": {
+ "version": "10.0.104",
+ "rollForward": "latestFeature"
+ }
+}