Repository navigation
Framework resolution strategy for Google.Apis.Oauth2.v2 #1663
Copy link
Copy link
Closed
Description
Description
Cannot use Google.Apis.Oauth2.v2 with Paket for Net45 project
Paket does not setup references properly in this case
Expected behavior
<?xml version="1.0" encoding="utf-8"?>
<packages>
<package id="BouncyCastle" version="1.7.0" targetFramework="net45" />
<package id="Google.Apis" version="1.11.1" targetFramework="net45" />
<package id="Google.Apis.Auth" version="1.11.1" targetFramework="net45" />
<package id="Google.Apis.Core" version="1.11.1" targetFramework="net45" />
<package id="Google.Apis.Oauth2.v2" version="1.12.0.454" targetFramework="net45" />
<package id="log4net" version="2.0.3" targetFramework="net45" />
<package id="Newtonsoft.Json" version="7.0.1" targetFramework="net45" />
<package id="Zlib.Portable.Signed" version="1.11.0" targetFramework="net45" />
</packages>Actual behavior
paket.dependencies
source https://nuget.org/api/v2
nuget Google.Apis.Oauth2.v2
paket.lock
NUGET
remote: https://www.nuget.org/api/v2
specs:
BouncyCastle (1.8.1)
Google.Apis (1.10) - framework: portable-net40+sl5+win8+wp8+wpa81
Google.Apis.Core (>= 1.10)
log4net (>= 2.0.3) - framework: >= net40
Zlib.Portable.Signed (>= 1.11)
Google.Apis.Auth (1.11.1) - framework: portable-net45+win8+wp8+wpa81
BouncyCastle (>= 1.7) - framework: >= net45
Google.Apis.Core (>= 1.11.1)
Google.Apis.Core (1.11.1) - framework: portable-net40+sl5+win8+wp8+wpa81, portable-net45+win8+wp8+wpa81
Microsoft.Bcl (>= 1.1.10) - framework: net10, net11, net20, net30, net35, net40, net40-full
Microsoft.Bcl.Async (>= 1.0.168) - framework: net10, net11, net20, net30, net35, net40, net40-full
Microsoft.Bcl.Build (>= 1.0.21) - framework: net10, net11, net20, net30, net35, net40, net40-full
Microsoft.Net.Http (>= 2.2.29) - framework: net10, net11, net20, net30, net35, net40, net40-full
Newtonsoft.Json (>= 7.0.1)
Google.Apis.Oauth2.v2 (1.12.0.454)
Google.Apis (>= 1.11.1) - framework: portable-net45+win8+wp8+wpa81
Google.Apis (1.10) - framework: portable-net40+sl5+win8+wp8+wpa81
Google.Apis.Auth (>= 1.11.1) - framework: portable-net45+win8+wp8+wpa81
Google.Apis.Auth (1.10) - framework: portable-net40+sl5+win8+wp8+wpa81
log4net (2.0.5)
Microsoft.Bcl (1.1.10)
Microsoft.Bcl.Build (>= 1.0.14)
Microsoft.Bcl.Async (1.0.168)
Microsoft.Bcl (>= 1.1.8)
Microsoft.Bcl.Build (1.0.21) - import_targets: false
Microsoft.Net.Http (2.2.29)
Microsoft.Bcl (>= 1.1.10)
Microsoft.Bcl.Build (>= 1.0.14)
Newtonsoft.Json (8.0.3) - framework: portable-net40+sl5+win8+wp8+wpa81, portable-net45+win8+wp8+wpa81
Zlib.Portable.Signed (1.11) - framework: portable-net40+sl5+win8+wp8+wpa81
Known workarounds
Use NuGet =(
Related information
Paket 2.64.0.0
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels



Activity
forki commentedon May 9, 2016
fixed in 2.64.2
sergey-tihon commentedon May 9, 2016
Hmm.. Looks like it does not work for indirect dependencies



Instead of
forki commentedon May 9, 2016
can you try update -f ?
sergey-tihon commentedon May 9, 2016
Better but still not all


forki commentedon May 9, 2016
What is still missing? Will look into it tomorrow.
On May 9, 2016 7:10 PM, "Sergey Tihon" notifications@github.com wrote:
sergey-tihon commentedon May 9, 2016
All yellow warn messages
Google.Apis,log4net&Zlibsergey-tihon commentedon May 10, 2016
Very interesting case here... Look at lock file
Google.Apishas special version withnet45support.Google.Apis (1.10):

Google.Apis (1.11.1):

But
Paketby design have to choose one version for solution, and here it choose min version1.10and this decisions does not work for
net45projects.forki commentedon May 10, 2016
yes. we don't support such constellation.
forki commentedon May 10, 2016
I will try to make it work for
forki commentedon May 10, 2016
it's giving me
that sounds ok
sergey-tihon commentedon May 10, 2016
Thank you, I think that it is OK for now (same result on my machine)
Now I have to understand how Paket modified all my proj files again)