From e8d169d8161d4eed9a2ab9dd78b6414fd4b4fc57 Mon Sep 17 00:00:00 2001 From: Steffen Forkmann Date: Thu, 16 Mar 2017 09:18:26 +0100 Subject: [PATCH] framework: auto-detect didn't work with Paket 4 - fixes #2188 --- RELEASE_NOTES.md | 3 +++ src/Paket.Core/Requirements.fs | 1 + 2 files changed, 4 insertions(+) diff --git a/RELEASE_NOTES.md b/RELEASE_NOTES.md index f2201570a8..57c70b18e6 100644 --- a/RELEASE_NOTES.md +++ b/RELEASE_NOTES.md @@ -1,3 +1,6 @@ +#### 4.0.3 - 16.03.2017 +* BUGFIX: framework: auto-detect didn't work with Paket 4 - https://github.com/fsprojects/Paket/issues/2188 + #### 4.0.2 - 16.03.2017 * Handle empty references files for .NET Core diff --git a/src/Paket.Core/Requirements.fs b/src/Paket.Core/Requirements.fs index ead984b88b..ffc3b733f5 100644 --- a/src/Paket.Core/Requirements.fs +++ b/src/Paket.Core/Requirements.fs @@ -449,6 +449,7 @@ let filterRestrictions (list1:FrameworkRestrictions) (list2:FrameworkRestriction match list1,list2 with | FrameworkRestrictionList [], AutoDetectFramework -> AutoDetectFramework | AutoDetectFramework, FrameworkRestrictionList [] -> AutoDetectFramework + | AutoDetectFramework, AutoDetectFramework -> AutoDetectFramework | FrameworkRestrictionList list1 , FrameworkRestrictionList list2 -> let filtered = match list1, list2 with