From 02d41723d0baf9f78c600319c1cc2de50ad70cd7 Mon Sep 17 00:00:00 2001 From: Matthias Dittrich Date: Sun, 10 Jul 2016 21:31:10 +0200 Subject: [PATCH] Revert "References #1779" This reverts commit 15256bd9f3b5c2ec25f3799af4032588ec8e7602. --- RELEASE_NOTES.md | 3 --- src/Paket.Core/Requirements.fs | 26 +++----------------------- src/Paket/Paket.fsproj | 4 ++-- 3 files changed, 5 insertions(+), 28 deletions(-) diff --git a/RELEASE_NOTES.md b/RELEASE_NOTES.md index df3fde4091..a15dd0772e 100644 --- a/RELEASE_NOTES.md +++ b/RELEASE_NOTES.md @@ -1,6 +1,3 @@ -#### 3.5.0-alpha001 - 01.07.2016 -* BUGFIX: Install older frameworks if things don't work out - https://github.com/fsprojects/Paket/issues/1779 - #### 3.4.0 - 30.06.2016 * Inaccessible caches are excluded for the duration of running a command - https://github.com/fsprojects/Paket/pull/1770 * BUGFIX: NuGet OData search is now case-insensitive - https://github.com/fsprojects/Paket/issues/1775 diff --git a/src/Paket.Core/Requirements.fs b/src/Paket.Core/Requirements.fs index e80680ea40..b4bdb4888b 100644 --- a/src/Paket.Core/Requirements.fs +++ b/src/Paket.Core/Requirements.fs @@ -443,29 +443,9 @@ let isTargetMatchingRestrictions = | _ -> false) /// Get all targets that should be considered with the specified restrictions -let rec applyRestrictionsToTargets (restrictions:FrameworkRestriction list) (targets: TargetProfile list) = - let filtered = - targets - |> List.filter (fun t -> isTargetMatchingRestrictions(restrictions,t)) - - if filtered = [] then - match restrictions with - | [FrameworkRestriction.Exactly(DotNetFramework(FrameworkVersion.V4_6_2))] -> applyRestrictionsToTargets [FrameworkRestriction.Exactly(DotNetFramework(FrameworkVersion.V4_6_1))] targets - | [FrameworkRestriction.Exactly(DotNetFramework(FrameworkVersion.V4_6_1))] -> applyRestrictionsToTargets [FrameworkRestriction.Exactly(DotNetFramework(FrameworkVersion.V4_6))] targets - | [FrameworkRestriction.Exactly(DotNetFramework(FrameworkVersion.V4_6))] -> applyRestrictionsToTargets [FrameworkRestriction.Exactly(DotNetFramework(FrameworkVersion.V4_5_3))] targets - | [FrameworkRestriction.Exactly(DotNetFramework(FrameworkVersion.V4_5_3))] -> applyRestrictionsToTargets [FrameworkRestriction.Exactly(DotNetFramework(FrameworkVersion.V4_5_2))] targets - | [FrameworkRestriction.Exactly(DotNetFramework(FrameworkVersion.V4_5_2))] -> applyRestrictionsToTargets [FrameworkRestriction.Exactly(DotNetFramework(FrameworkVersion.V4_5_1))] targets - | [FrameworkRestriction.Exactly(DotNetFramework(FrameworkVersion.V4_5_1))] -> applyRestrictionsToTargets [FrameworkRestriction.Exactly(DotNetFramework(FrameworkVersion.V4_5))] targets - | [FrameworkRestriction.Exactly(DotNetFramework(FrameworkVersion.V4_5))] -> applyRestrictionsToTargets [FrameworkRestriction.Exactly(DotNetFramework(FrameworkVersion.V4))] targets - | [FrameworkRestriction.Exactly(DotNetFramework(FrameworkVersion.V4))] -> applyRestrictionsToTargets [FrameworkRestriction.Exactly(DotNetFramework(FrameworkVersion.V4_Client))] targets - | [FrameworkRestriction.Exactly(DotNetFramework(FrameworkVersion.V4_Client))] -> applyRestrictionsToTargets [FrameworkRestriction.Exactly(DotNetFramework(FrameworkVersion.V3_5))] targets - | [FrameworkRestriction.Exactly(DotNetFramework(FrameworkVersion.V3_5))] -> applyRestrictionsToTargets [FrameworkRestriction.Exactly(DotNetFramework(FrameworkVersion.V3))] targets - | [FrameworkRestriction.Exactly(DotNetFramework(FrameworkVersion.V3))] -> applyRestrictionsToTargets [FrameworkRestriction.Exactly(DotNetFramework(FrameworkVersion.V2))] targets - | [FrameworkRestriction.Exactly(DotNetFramework(FrameworkVersion.V2))] -> applyRestrictionsToTargets [FrameworkRestriction.Exactly(DotNetFramework(FrameworkVersion.V1_1))] targets - | [FrameworkRestriction.Exactly(DotNetFramework(FrameworkVersion.V1_1))] -> applyRestrictionsToTargets [FrameworkRestriction.Exactly(DotNetFramework(FrameworkVersion.V1))] targets - | _ -> filtered - else - filtered +let applyRestrictionsToTargets (restrictions:FrameworkRestriction list) (targets: TargetProfile list) = + targets + |> List.filter (fun t -> isTargetMatchingRestrictions(restrictions,t)) type ContentCopySettings = | Omit diff --git a/src/Paket/Paket.fsproj b/src/Paket/Paket.fsproj index ab078e8dc0..851a0d4fd5 100644 --- a/src/Paket/Paket.fsproj +++ b/src/Paket/Paket.fsproj @@ -51,8 +51,8 @@ D:\code\PaketKopie update -f D:\code\Paket\integrationtests\scenarios\i001117-aws\temp - install - D:\code\paket-net20-library-problem + auto-restore on + D:\code\Paket.ImportTargets 11