|
14 | 14 | <PackageReference Include="Splat" Version="4.0.2" /> |
15 | 15 | </ItemGroup> |
16 | 16 |
|
17 | | - <ItemGroup Condition=" '$(TargetFramework)' == 'netstandard2.0' "> |
| 17 | + <ItemGroup Condition=" $(TargetFramework.StartsWith('netstandard')) "> |
18 | 18 | <Compile Include="Platforms\netstandard2.0\**\*.cs" /> |
19 | 19 | <PackageReference Include="System.ComponentModel" Version="4.3.0" /> |
20 | 20 | <PackageReference Include="System.Diagnostics.Contracts" Version="4.3.0" /> |
21 | 21 | <PackageReference Include="System.Dynamic.Runtime" Version="4.3.0" /> |
22 | 22 | <PackageReference Include="System.Runtime.Serialization.Primitives" Version="4.3.0" /> |
23 | 23 | </ItemGroup> |
24 | 24 |
|
25 | | - <ItemGroup Condition="'$(TargetFramework)' == 'net461'"> |
| 25 | + <ItemGroup Condition=" $(TargetFramework.StartsWith('net4')) "> |
26 | 26 | <Compile Include="Platforms\net461\**\*.cs" /> |
27 | 27 | <PackageReference Include="System.ValueTuple" Version="4.5.0" /> |
28 | 28 | </ItemGroup> |
|
31 | 31 | <Compile Include="Platforms\shared\**\*.cs" /> |
32 | 32 | </ItemGroup> |
33 | 33 |
|
34 | | - <ItemGroup Condition=" '$(TargetFramework)' == 'uap10.0.16299' "> |
| 34 | + <ItemGroup Condition=" $(TargetFramework.StartsWith('uap')) "> |
35 | 35 | <Compile Include="Platforms\windows-common\**\*.cs" /> |
36 | 36 | <Compile Include="Platforms\uap10.0.16299\**\*.cs" /> |
37 | 37 | </ItemGroup> |
38 | 38 |
|
39 | | - <ItemGroup Condition=" '$(TargetFramework)' == 'Xamarin.iOS10' "> |
| 39 | + <ItemGroup Condition=" $(TargetFramework.StartsWith('Xamarin.iOS')) "> |
40 | 40 | <Compile Include="Platforms\apple-common\**\*.cs" /> |
41 | 41 | <Compile Include="Platforms\ios\**\*.cs" /> |
42 | 42 | <Compile Include="Platforms\uikit-common\**\*.cs" /> |
43 | 43 | <Compile Include="Platforms\xamarin-common\**\*.cs" /> |
44 | 44 | <Reference Include="System.Runtime.Serialization" /> |
45 | 45 | </ItemGroup> |
46 | 46 |
|
47 | | - <ItemGroup Condition=" '$(TargetFramework)' == 'Xamarin.Mac20' "> |
| 47 | + <ItemGroup Condition=" $(TargetFramework.StartsWith('Xamarin.Mac')) "> |
48 | 48 | <Compile Include="Platforms\apple-common\**\*.cs" /> |
49 | 49 | <Compile Include="Platforms\mac\**\*.cs" /> |
50 | 50 | <Compile Include="Platforms\xamarin-common\**\*.cs" /> |
51 | 51 | <Reference Include="System.Runtime.Serialization" /> |
52 | 52 | <Reference Include="netstandard" /> |
53 | 53 | </ItemGroup> |
54 | 54 |
|
55 | | - <ItemGroup Condition=" '$(TargetFramework)' == 'Xamarin.TVOS10' "> |
| 55 | + <ItemGroup Condition=" $(TargetFramework.StartsWith('Xamarin.TVOS')) "> |
56 | 56 | <Compile Include="Platforms\apple-common\**\*.cs" /> |
57 | 57 | <Compile Include="Platforms\tvos\**\*.cs" /> |
58 | 58 | <Compile Include="Platforms\uikit-common\**\*.cs" /> |
59 | 59 | <Compile Include="Platforms\xamarin-common\**\*.cs" /> |
60 | 60 | <Reference Include="System.Runtime.Serialization" /> |
61 | 61 | </ItemGroup> |
62 | 62 |
|
63 | | - <ItemGroup Condition=" '$(TargetFramework)' == 'MonoAndroid80' "> |
| 63 | + <ItemGroup Condition=" $(TargetFramework.StartsWith('MonoAndroid')) "> |
64 | 64 | <Compile Include="Platforms\android\**\*.cs" /> |
65 | 65 | <Compile Include="Platforms\xamarin-common\**\*.cs" /> |
66 | 66 | <Reference Include="System.Runtime.Serialization" /> |
67 | 67 | </ItemGroup> |
68 | 68 |
|
69 | | - <ItemGroup Condition=" '$(TargetFramework)' == 'netcoreapp2.0' "> |
| 69 | + <ItemGroup Condition=" $(TargetFramework.StartsWith('netcoreapp')) "> |
70 | 70 | <Compile Include="Platforms\netcoreapp2.0\**\*.cs" /> |
71 | 71 | <PackageReference Include="System.Runtime.Serialization.Primitives" Version="4.3.0" /> |
72 | 72 | </ItemGroup> |
73 | 73 |
|
74 | | - <ItemGroup Condition=" '$(TargetFramework)' == 'tizen40' "> |
| 74 | + <ItemGroup Condition=" $(TargetFramework.StartsWith('tizen')) "> |
75 | 75 | <Compile Include="Platforms\tizen\**\*.cs" /> |
76 | 76 | <Compile Include="Platforms\xamarin-common\**\*.cs" /> |
77 | 77 | <PackageReference Include="System.Collections" Version="4.3.0" /> |
|
0 commit comments