mirror of
https://github.com/nsnail/spectre.console.git
synced 2025-12-24 02:25:48 +08:00
Add support for .NET 7.0
This commit is contained in:
committed by
Patrik Svensson
parent
02f9d26473
commit
7dce4af552
@@ -64,8 +64,8 @@ internal static class ColorSystemDetector
|
||||
return false;
|
||||
}
|
||||
|
||||
#if NET5_0_OR_GREATER
|
||||
// The reason we're not always using this, is because it will return wrong values on other runtimes than .NET 5+
|
||||
#if NET6_0_OR_GREATER
|
||||
// The reason we're not always using this, is because it will return wrong values on other runtimes than .NET 6+
|
||||
// See https://docs.microsoft.com/en-us/dotnet/core/compatibility/core-libraries/5.0/environment-osversion-returns-correct-version
|
||||
var version = Environment.OSVersion.Version;
|
||||
major = version.Major;
|
||||
|
||||
Reference in New Issue
Block a user