Skip to content

Commit

Permalink
be careful with distinction between .NET 4.0 client and .NET 4.0 full…
Browse files Browse the repository at this point in the history
… profile - fixes #1830
  • Loading branch information
forki committed Jul 26, 2016
1 parent c39ee8d commit 08480c3
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
3 changes: 3 additions & 0 deletions RELEASE_NOTES.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
#### 3.9.5 - 26.07.2016
* BUGFIX: be careful with distinction between .NET 4.0 client and .NET 4.0 full profile - https://github.com/fsprojects/Paket/issues/1830

#### 3.9.4 - 26.07.2016
* BUGFIX: Don't allow empty string as description in template file - https://github.com/fsprojects/Paket/pull/1831

Expand Down
4 changes: 4 additions & 0 deletions src/Paket.Core/PlatformMatching.fs
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,8 @@ let getTargetCondition (target:TargetProfile) =
match target with
| SinglePlatform(platform) ->
match platform with
| DotNetFramework(version) when version = FrameworkVersion.V4_Client ->
"$(TargetFrameworkIdentifier) == '.NETFramework'", sprintf "($(TargetFrameworkVersion) == '%O' And $(TargetFrameworkProfile) == 'Client')" version
| DotNetFramework(version) ->"$(TargetFrameworkIdentifier) == '.NETFramework'", sprintf "$(TargetFrameworkVersion) == '%O'" version
| DNX(version) ->"$(TargetFrameworkIdentifier) == 'DNX'", sprintf "$(TargetFrameworkVersion) == '%O'" version
| DNXCore(version) ->"$(TargetFrameworkIdentifier) == 'DNXCore'", sprintf "$(TargetFrameworkVersion) == '%O'" version
Expand Down Expand Up @@ -216,6 +218,8 @@ let getCondition (referenceCondition:string option) (targets : TargetProfile lis
|> List.filter (function
| SinglePlatform(Native("", "")) -> false
| SinglePlatform(Runtimes(_)) -> false
| SinglePlatform(DotNetFramework(FrameworkVersion.V4_Client)) ->
targets |> List.contains (SinglePlatform(DotNetFramework(FrameworkVersion.V4))) |> not
| _ -> true)
|> List.map getTargetCondition
|> List.filter (fun (_, v) -> v <> "false")
Expand Down

0 comments on commit 08480c3

Please sign in to comment.