Skip to content

Commit

Permalink
dotnet#51371 in case of windows don't change parameter IsCaseSensitiveOS
Browse files Browse the repository at this point in the history
  • Loading branch information
mkhamoyan committed Jan 25, 2022
1 parent d457075 commit bdc06e9
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,14 @@ public static partial class PlatformDetection
public static bool IsNotWindows => !IsWindows;

public static bool IsCaseInsensitiveOS => IsWindows || IsOSX || IsMacCatalyst;

#if NETCOREAPP
public static bool IsCaseSensitiveOS => !IsCaseInsensitiveOS && !RuntimeInformation.RuntimeIdentifier.StartsWith("iossimulator")
&& !RuntimeInformation.RuntimeIdentifier.StartsWith("tvossimulator");

#else
public static bool IsCaseSensitiveOS => !IsCaseInsensitiveOS;
#endif

public static bool IsThreadingSupported => !IsBrowser;
public static bool IsBinaryFormatterSupported => IsNotMobile && !IsNativeAot;
public static bool IsSymLinkSupported => !IsiOS && !IstvOS;
Expand Down

0 comments on commit bdc06e9

Please sign in to comment.