Skip to content

Commit

Permalink
fix for #3500
Browse files Browse the repository at this point in the history
  • Loading branch information
sergey-tihon committed Apr 14, 2019
1 parent f8a5375 commit 1d48b32
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/Paket.Core/Versioning/FrameworkHandling.fs
Original file line number Diff line number Diff line change
Expand Up @@ -601,7 +601,7 @@ type FrameworkIdentifier =
| MonoMac -> [ DotNetStandard DotNetStandardVersion.V1_6 ]
| Native(_) -> [ ]
| XamariniOS -> [ DotNetStandard DotNetStandardVersion.V1_6; DotNetStandard DotNetStandardVersion.V2_0 ]
| XamarinMac -> [ DotNetStandard DotNetStandardVersion.V1_6 ]
| XamarinMac -> [ DotNetStandard DotNetStandardVersion.V1_6; DotNetStandard DotNetStandardVersion.V2_0]
| XamarinTV -> [ DotNetStandard DotNetStandardVersion.V1_6 ]
| XamarinWatch -> [ DotNetStandard DotNetStandardVersion.V1_6 ]
| UAP UAPVersion.V10 -> [ Windows WindowsVersion.V8_1; WindowsPhoneApp WindowsPhoneAppVersion.V8_1; DotNetStandard DotNetStandardVersion.V1_4 ]
Expand Down
14 changes: 14 additions & 0 deletions tests/Paket.Tests/Versioning/FrameworkCompatibilitySpecs.fs
Original file line number Diff line number Diff line change
Expand Up @@ -109,3 +109,17 @@ let ``monoandroid8.0 should be compatible with netstandard2.0``() =

``netstandard2.0``.IsSmallerThan ``monoandroid8.0``
|> shouldEqual true

[<Test>]
let ``Xamarin.Mac should be compatible with netstandard2.0``() =
let ``netstandard2.0`` = TargetProfile.SinglePlatform (DotNetStandard DotNetStandardVersion.V2_0)
let ``xamarinmac`` = TargetProfile.SinglePlatform (XamarinMac)

``xamarinmac``.IsAtLeast ``netstandard2.0``
|> shouldEqual true

``netstandard2.0``.IsSupportedBy ``xamarinmac``
|> shouldEqual true

``netstandard2.0``.IsSmallerThan ``xamarinmac``
|> shouldEqual true

0 comments on commit 1d48b32

Please sign in to comment.