mirror of
https://github.com/2dust/v2rayN.git
synced 2025-12-16 11:52:42 +00:00
Use OperatingSystem replace RuntimeInformation
This commit is contained in:
parent
bf1fb0f92e
commit
c63d4e83f9
1 changed files with 4 additions and 4 deletions
|
|
@ -963,13 +963,13 @@ public class Utils
|
|||
|
||||
#region Platform
|
||||
|
||||
public static bool IsWindows() => RuntimeInformation.IsOSPlatform(OSPlatform.Windows);
|
||||
public static bool IsWindows() => OperatingSystem.IsWindows();
|
||||
|
||||
public static bool IsLinux() => RuntimeInformation.IsOSPlatform(OSPlatform.Linux);
|
||||
public static bool IsLinux() => OperatingSystem.IsLinux();
|
||||
|
||||
public static bool IsOSX() => RuntimeInformation.IsOSPlatform(OSPlatform.OSX);
|
||||
public static bool IsOSX() => OperatingSystem.IsMacOS();
|
||||
|
||||
public static bool IsNonWindows() => !RuntimeInformation.IsOSPlatform(OSPlatform.Windows);
|
||||
public static bool IsNonWindows() => !OperatingSystem.IsWindows();
|
||||
|
||||
public static string GetExeName(string name)
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in a new issue