Support ancient .NET in Core

This commit is contained in:
Matt Nadareski
2024-02-28 19:49:09 -05:00
parent 823a9ca7b7
commit 778399cad7
11 changed files with 269 additions and 184 deletions

View File

@@ -27,6 +27,7 @@ namespace SabreTools.Core
mid = $"|{mid.PadLeft(((width - mid.Length) / 2) + mid.Length).PadRight(width)}|";
// If we're outputting to console, do fancy things
#if NET452_OR_GREATER || NETCOREAPP
if (!Console.IsOutputRedirected)
{
// Set the console to ready state
@@ -47,6 +48,7 @@ namespace SabreTools.Core
Console.ForegroundColor = formertext;
Console.BackgroundColor = formerback;
}
#endif
}
}
}