In my project I'm using Microsoft.AspNet.WebApi.Client, which includes the following in the nuspec file
<dependencies>
<group targetFramework=".NETFramework4.5">
<dependency id="Newtonsoft.Json" version="6.0.4" />
</group>
<group targetFramework=".NETPortable0.0-wp8+netcore45+net45+wp81+wpa81">
<dependency id="Newtonsoft.Json" version="6.0.4" />
<dependency id="Microsoft.Net.Http" version="2.2.22" />
</group>
</dependencies>
However, Paket seems to be using the second group (.NETPortable0.0-wp8+netcore45+net45+wp81+wpa81) even for .NETFramework4.5. This is visible in two places
- The
paket.lock file contains
Microsoft.AspNet.WebApi.Client (5.2.3) - framework: >= net45
Microsoft.Net.Http (>= 2.2.22) - framework: >= net45, portable-wp80+win+net45+wp81+wpa81
- The
.csproj started including the Microsoft.Net.Http assemblies
<When Condition="$(TargetFrameworkIdentifier) == '.NETFramework' And ($(TargetFrameworkVersion) == 'v4.5' Or $(TargetFrameworkVersion) == 'v4.5.1' Or $(TargetFrameworkVersion) == 'v4.5.2' Or $(TargetFrameworkVersion) == 'v4.5.3' Or $(TargetFrameworkVersion) == 'v4.6' Or $(TargetFrameworkVersion) == 'v4.6.1' Or $(TargetFrameworkVersion) == 'v4.6.2')">
<ItemGroup>
<Reference Include="System.Net.Http.Extensions">
<HintPath>..\..\..\packages\Microsoft.Net.Http\lib\net45\System.Net.Http.Extensions.dll</HintPath>
<Private>True</Private>
<Paket>True</Paket>
</Reference>
<Reference Include="System.Net.Http.Primitives">
<HintPath>..\..\..\packages\Microsoft.Net.Http\lib\net45\System.Net.Http.Primitives.dll</HintPath>
<Private>True</Private>
<Paket>True</Paket>
</Reference>
<Reference Include="System.Net.Http.WebRequest">
<Paket>True</Paket>
</Reference>
</ItemGroup>
</When>
If I add framework: >= net45 to the paket.dependencies file the behavior is the same.
This also appears to have been a change from past behavior, however if I revert back to version 2.66.0 the behavior is the same.
Can you provide me some information to help understand this behavior.
Thanks.
In my project I'm using
Microsoft.AspNet.WebApi.Client, which includes the following in thenuspecfileHowever, Paket seems to be using the second group (
.NETPortable0.0-wp8+netcore45+net45+wp81+wpa81) even for.NETFramework4.5. This is visible in two placespaket.lockfile contains.csprojstarted including theMicrosoft.Net.Http assembliesIf I add
framework: >= net45to thepaket.dependenciesfile the behavior is the same.This also appears to have been a change from past behavior, however if I revert back to version 2.66.0 the behavior is the same.
Can you provide me some information to help understand this behavior.
Thanks.