Skip to content

Commit 3a992cc

Browse files
committed
Fix Xamarin build.
1 parent 09b77e2 commit 3a992cc

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

src/MsgPack/MsgPack.csproj

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,21 @@
2525
<OutputPath>bin\$(Configuration)\</OutputPath>
2626
</PropertyGroup>
2727
<Import Project="..\..\MsgPack.Common.props" />
28+
<PropertyGroup Condition="'$(TargetFramework)' == 'MonoAndroid10'">
29+
<!-- Workaround for VS 15.3 -->
30+
<NuGetTargetMoniker>MonoAndroid,Version=1.0</NuGetTargetMoniker>
31+
</PropertyGroup>
2832
<ItemGroup Condition="'$(TargetFramework)' != 'uap10.0' and '$(TargetFramework)' != 'netstandard1.1' and '$(TargetFramework)' != 'netstandard1.3' and '$(TargetFramework)' != 'netstandard2.0'">
2933
<Reference Include="System" />
3034
<Reference Include="System.Core" />
3135
<Reference Include="System.Numerics" Condition="'$(TargetFramework)' != 'net35'" />
3236
</ItemGroup>
37+
<ItemGroup Condition="'$(TargetFramework)' == 'MonoAndroid10'">
38+
<Reference Include="Mono.Android" />
39+
</ItemGroup>
40+
<ItemGroup Condition="'$(TargetFramework)' == 'Xamarin.iOS10'">
41+
<Reference Include="Xamarin.iOS" />
42+
</ItemGroup>
3343
<ItemGroup Condition="'$(TargetFramework)' == 'netstandard1.1' or '$(TargetFramework)' == 'netstandard1.3'">
3444
<PackageReference Include="System.Collections" Version="4.0.11" />
3545
<PackageReference Include="System.Collections.Concurrent" Version="4.0.12" />

0 commit comments

Comments
 (0)