Skip to content

Commit eb67c25

Browse files
committed
enable NameResolution and Sockets on WASI
Signed-off-by: Joel Dice <[email protected]>
1 parent 68d9035 commit eb67c25

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/libraries/System.Net.NameResolution/src/System.Net.NameResolution.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22

33
<PropertyGroup>
4-
<TargetFrameworks>$(NetCoreAppCurrent)-windows;$(NetCoreAppCurrent)-unix;$(NetCoreAppCurrent)-browser;$(NetCoreAppCurrent)</TargetFrameworks>
4+
<TargetFrameworks>$(NetCoreAppCurrent)-windows;$(NetCoreAppCurrent)-unix;$(NetCoreAppCurrent)-browser;$(NetCoreAppCurrent)-wasi;$(NetCoreAppCurrent)</TargetFrameworks>
55
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
66
<UseCompilerGeneratedDocXmlFile>false</UseCompilerGeneratedDocXmlFile>
77
</PropertyGroup>
@@ -68,7 +68,7 @@
6868
Link="Common\Interop\Windows\WinSock\Interop.GetAddrInfoExW.cs" />
6969
</ItemGroup>
7070

71-
<ItemGroup Condition="'$(TargetPlatformIdentifier)' == 'unix'">
71+
<ItemGroup Condition="'$(TargetPlatformIdentifier)' == 'unix' or '$(TargetPlatformIdentifier)' == 'wasi'">
7272
<Compile Include="System\Net\NameResolutionPal.Unix.cs" />
7373
<Compile Include="$(CommonPath)System\Net\InteropIPAddressExtensions.Unix.cs"
7474
Link="Common\System\Net\InteropIPAddressExtensions.Unix.cs" />

src/libraries/System.Net.Sockets/src/System.Net.Sockets.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22

33
<PropertyGroup>
4-
<TargetFrameworks>$(NetCoreAppCurrent)-windows;$(NetCoreAppCurrent)-unix;$(NetCoreAppCurrent)-osx;$(NetCoreAppCurrent)-ios;$(NetCoreAppCurrent)-tvos;$(NetCoreAppCurrent)</TargetFrameworks>
4+
<TargetFrameworks>$(NetCoreAppCurrent)-windows;$(NetCoreAppCurrent)-unix;$(NetCoreAppCurrent)-wasi;$(NetCoreAppCurrent)-osx;$(NetCoreAppCurrent)-ios;$(NetCoreAppCurrent)-tvos;$(NetCoreAppCurrent)</TargetFrameworks>
55
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
66
<!-- SYSTEM_NET_SOCKETS_DLL is required to allow source-level code sharing for types defined within the
77
System.Net.Internals namespace. -->
@@ -183,7 +183,7 @@
183183
Link="Common\System\Net\CompletionPortHelper.Windows.cs" />
184184
</ItemGroup>
185185

186-
<ItemGroup Condition="'$(TargetPlatformIdentifier)' == 'unix' or '$(TargetPlatformIdentifier)' == 'osx' or '$(TargetPlatformIdentifier)' == 'ios' or '$(TargetPlatformIdentifier)' == 'tvos'">
186+
<ItemGroup Condition="'$(TargetPlatformIdentifier)' == 'unix' or '$(TargetPlatformIdentifier)' == 'osx' or '$(TargetPlatformIdentifier)' == 'ios' or '$(TargetPlatformIdentifier)' == 'tvos' or '$(TargetPlatformIdentifier)' == 'wasi'">
187187
<Compile Include="System\Net\Sockets\SafeSocketHandle.Unix.cs" />
188188
<Compile Include="System\Net\Sockets\Socket.Unix.cs" />
189189
<Compile Include="System\Net\Sockets\SocketAsyncContext.Unix.cs" />

0 commit comments

Comments
 (0)