Skip to content

Commit 03f3e27

Browse files
committed
fix: adding support for net35 net462 and netstandard2.1
1 parent 968df6c commit 03f3e27

File tree

1 file changed

+0
-15
lines changed

1 file changed

+0
-15
lines changed

src/Twilio/Http/SystemNetHttpClient.cs

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -107,22 +107,7 @@ private HttpRequestMessage BuildHttpRequest(Request request)
107107
string helperLibVersion = AssemblyInfomation.AssemblyInformationalVersion;
108108

109109
string osName = "Unknown";
110-
#if !NETSTANDARD1_4
111110
osName = Environment.OSVersion.Platform.ToString();
112-
#else
113-
if (RuntimeInformation.IsOSPlatform(OSPlatform.Windows))
114-
{
115-
osName = "Windows";
116-
}
117-
else if (RuntimeInformation.IsOSPlatform(OSPlatform.OSX))
118-
{
119-
osName = "MacOS";
120-
}
121-
else if (RuntimeInformation.IsOSPlatform(OSPlatform.Linux))
122-
{
123-
osName = "Linux";
124-
}
125-
#endif
126111

127112
string osArch;
128113
#if !NET462

0 commit comments

Comments
 (0)