A lot of Misc Fixes (#2656)
This commit is contained in:
parent
088af37960
commit
b1e9d8cbba
15 changed files with 116 additions and 92 deletions
|
@ -10,7 +10,9 @@ public static class OsInfo
|
|||
public static bool IsLinux => Os is Os.Linux or Os.LinuxMusl or Os.Bsd;
|
||||
public static bool IsOsx => Os == Os.Osx;
|
||||
public static bool IsWindows => Os == Os.Windows;
|
||||
public static bool IsDocker => Environment.GetEnvironmentVariable("DOTNET_RUNNING_IN_CONTAINER") == "true";
|
||||
public static bool IsDocker =>
|
||||
Environment.GetEnvironmentVariable("DOTNET_RUNNING_IN_CONTAINER") == "true" ||
|
||||
Environment.GetEnvironmentVariable("LSIO_FIRST_PARTY") == "true";
|
||||
|
||||
static OsInfo()
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue