diff --git a/src/Authentication/Authentication/Helpers/ContentHelper.cs b/src/Authentication/Authentication/Helpers/ContentHelper.cs index 8526d0cca9a..a35885bed8e 100644 --- a/src/Authentication/Authentication/Helpers/ContentHelper.cs +++ b/src/Authentication/Authentication/Helpers/ContentHelper.cs @@ -135,7 +135,7 @@ private static bool CheckIsText(string contentType) || CheckIsJson(contentType); // Further content type analysis is available on Windows - if (Platform.IsWindows && !isText) + if (OperatingSystem.IsWindows() && !isText) { // Media types registered with Windows as having a perceived type of text, are text using (var contentTypeKey = Registry.ClassesRoot.OpenSubKey(@"MIME\Database\Content Type\" + contentType)) diff --git a/src/Authentication/Authentication/Helpers/InvokeGraphRequestUserAgent.cs b/src/Authentication/Authentication/Helpers/InvokeGraphRequestUserAgent.cs index 65c5724d2d3..cb8ff8cc418 100644 --- a/src/Authentication/Authentication/Helpers/InvokeGraphRequestUserAgent.cs +++ b/src/Authentication/Authentication/Helpers/InvokeGraphRequestUserAgent.cs @@ -55,7 +55,7 @@ internal string PlatformName { get { - if (Platform.IsWindows) + if (OperatingSystem.IsWindows()) { // only generate the windows user agent once if (_windowsUserAgent == null) @@ -69,11 +69,11 @@ internal string PlatformName return _windowsUserAgent; } - else if (Platform.IsMacOS) + else if (OperatingSystem.IsMacOS()) { return "Macintosh"; } - else if (Platform.IsLinux) + else if (OperatingSystem.IsLinux()) { return "Linux"; } diff --git a/src/Authentication/Authentication/Microsoft.Graph.Authentication.csproj b/src/Authentication/Authentication/Microsoft.Graph.Authentication.csproj index f23d91f04ec..76627c8d751 100644 --- a/src/Authentication/Authentication/Microsoft.Graph.Authentication.csproj +++ b/src/Authentication/Authentication/Microsoft.Graph.Authentication.csproj @@ -27,7 +27,6 @@ -