|
5 | 5 | <TargetFrameworks>$(NetCoreAppCurrent)-Windows_NT;$(NetCoreAppCurrent)-Unix;$(NetCoreAppCurrent)-Browser</TargetFrameworks> |
6 | 6 | <Nullable>enable</Nullable> |
7 | 7 | </PropertyGroup> |
8 | | - <ItemGroup> |
| 8 | + <PropertyGroup> |
| 9 | + <GeneratePlatformNotSupportedAssemblyMessage Condition="'$(TargetsBrowser)' == 'true'">SR.Ping_PlatformNotSupported</GeneratePlatformNotSupportedAssemblyMessage> |
| 10 | + </PropertyGroup> |
| 11 | + <ItemGroup Condition="'$(TargetsBrowser)' != 'true'"> |
9 | 12 | <Compile Include="System\Net\NetworkInformation\IPStatus.cs" /> |
10 | 13 | <Compile Include="System\Net\NetworkInformation\NetEventSource.Ping.cs" /> |
11 | 14 | <Compile Include="System\Net\NetworkInformation\Ping.cs" /> |
12 | 15 | <Compile Include="System\Net\NetworkInformation\PingCompletedEventArgs.cs" /> |
13 | 16 | <Compile Include="System\Net\NetworkInformation\PingException.cs" /> |
14 | 17 | <Compile Include="System\Net\NetworkInformation\PingOptions.cs" /> |
15 | 18 | <Compile Include="System\Net\NetworkInformation\PingReply.cs" /> |
16 | | - </ItemGroup> |
17 | | - <!-- System.Net Common --> |
18 | | - <ItemGroup> |
| 19 | + <!-- System.Net Common --> |
19 | 20 | <Compile Include="$(CommonPath)System\Net\ByteOrder.cs" |
20 | 21 | Link="Common\System\Net\ByteOrder.cs" /> |
21 | 22 | <Compile Include="$(CommonPath)System\Net\IPAddressParserStatics.cs" |
22 | 23 | Link="Common\System\Net\IPAddressParserStatics.cs" /> |
23 | 24 | <Compile Include="$(CommonPath)System\Net\SocketAddress.cs" |
24 | 25 | Link="Common\System\Net\SocketAddress.cs" /> |
25 | | - </ItemGroup> |
26 | | - <!-- Logging --> |
27 | | - <ItemGroup> |
| 26 | + <!-- Logging --> |
28 | 27 | <Compile Include="$(CommonPath)System\Net\Logging\NetEventSource.Common.cs" |
29 | 28 | Link="Common\System\Net\Logging\NetEventSource.Common.cs" /> |
30 | 29 | <Compile Include="$(CommonPath)System\Net\InternalException.cs" |
31 | 30 | Link="Common\System\Net\InternalException.cs" /> |
32 | | - </ItemGroup> |
33 | | - <!-- System.Net.Internals --> |
34 | | - <ItemGroup> |
| 31 | + <!-- System.Net.Internals --> |
35 | 32 | <Compile Include="$(CommonPath)System\Net\Internals\IPAddressExtensions.cs" |
36 | 33 | Link="Common\System\Net\Internals\IPAddressExtensions.cs" /> |
37 | 34 | <Compile Include="$(CommonPath)System\Net\Internals\IPEndPointExtensions.cs" |
38 | 35 | Link="Common\System\Net\Internals\IPEndPointExtensions.cs" /> |
39 | 36 | </ItemGroup> |
40 | | - <ItemGroup Condition=" '$(TargetsUnix)' == 'true' or '$(TargetsBrowser)' == 'true' "> |
| 37 | + <ItemGroup Condition="'$(TargetsUnix)' == 'true'"> |
41 | 38 | <Compile Include="System\Net\NetworkInformation\IcmpV4MessageConstants.cs" /> |
42 | 39 | <Compile Include="System\Net\NetworkInformation\IcmpV6MessageConstants.cs" /> |
43 | 40 | <Compile Include="System\Net\NetworkInformation\Ping.Unix.cs" /> |
|
66 | 63 | </ItemGroup> |
67 | 64 | <ItemGroup Condition="'$(TargetsWindows)' == 'true'"> |
68 | 65 | <Compile Include="System\Net\NetworkInformation\Ping.Windows.cs" /> |
69 | | - </ItemGroup> |
70 | | - <ItemGroup Condition="'$(TargetsWindows)' == 'true'"> |
71 | 66 | <!-- System.Net Common --> |
72 | 67 | <Compile Include="$(CommonPath)System\Net\SocketAddressPal.Windows.cs" |
73 | 68 | Link="Common\System\Net\SocketAddressPal.Windows.cs" /> |
|
107 | 102 | <Reference Include="System.Threading" /> |
108 | 103 | <Reference Include="System.Threading.ThreadPool" /> |
109 | 104 | </ItemGroup> |
110 | | - <ItemGroup Condition="'$(TargetsUnix)' == 'true' or '$(TargetsBrowser)' == 'true'"> |
| 105 | + <ItemGroup Condition="'$(TargetsUnix)' == 'true'"> |
111 | 106 | <Reference Include="System.Diagnostics.Process" /> |
112 | 107 | <Reference Include="System.IO.FileSystem" /> |
113 | 108 | <Reference Include="System.Runtime.InteropServices.RuntimeInformation" /> |
|
0 commit comments