File tree Expand file tree Collapse file tree 2 files changed +1
-3
lines changed
src/ScriptEngine.HostedScript Expand file tree Collapse file tree 2 files changed +1
-3
lines changed Original file line number Diff line number Diff line change @@ -10,7 +10,6 @@ This Source Code Form is subject to the terms of the
1010using System . Collections . Generic ;
1111using System . Linq ;
1212using System . Net ;
13- using System . Runtime . InteropServices ;
1413
1514namespace ScriptEngine . HostedScript . Library . Http
1615{
@@ -36,7 +35,7 @@ public InternetProxyContext(bool useDefault)
3635
3736 if ( useDefault )
3837 {
39- if ( RuntimeInformation . IsOSPlatform ( OSPlatform . Linux ) )
38+ if ( System . Environment . OSVersion . Platform == System . PlatformID . Unix )
4039 {
4140 var httpEnv = System . Environment . GetEnvironmentVariable ( LINUX_ENV_HTTP ) ;
4241 _proxies [ Uri . UriSchemeHttp ] = httpEnv == null ? emptyProxy :
Original file line number Diff line number Diff line change 99 <ItemGroup >
1010 <PackageReference Include =" DotNetZip" Version =" 1.13.3" />
1111 <PackageReference Include =" Newtonsoft.Json" Version =" 11.0.2" />
12- <PackageReference Include =" System.Runtime.InteropServices.RuntimeInformation" Version =" 4.3.0" />
1312 <ProjectReference Include =" ..\ScriptEngine\ScriptEngine.csproj" />
1413 </ItemGroup >
1514 <PropertyGroup >
You can’t perform that action at this time.
0 commit comments