fsprojects / fsprojects/Paket

Missing transitive Dependencies for specific nupkg

Open
#1,913 6 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug resolution
Dominant language
F#
Stars
2.1k
Forks
528
Avg merge
1d 12m
Merged PRs (30d)
54

Description

Description

When adding the Dropbox API as package (http://www.nuget.org/packages/Dropbox.Api/) in a C# .Net 4 Client Profile project, the transitive dependencies are missing.

Repro steps
  1. Create a C# project with .Net 4.0 Client profile
  2. Init Paket
  3. Add Dropbox.Api to dependencies and refences files
  4. The application won't compile as the dependencies are not resolved.

This is the sample project for that:
https://github.com/pdfforge/paket-bugreport

Expected behavior

The project should compile ;-)

Actual behavior

The dependencies are not recognized, most likely due to the dependency group definition:

  <group targetFramework=".NETPortable0.0-net40+sl5+wp80+win8+wpa81">
    <dependency id="Newtonsoft.Json" version="7.0.1" />
    <dependency id="Microsoft.Bcl.Async" version="1.0.168" />
    <dependency id="Microsoft.Net.Http" version="2.2.29" />
  </group>

When using the nuget manager from Visual Studio, the dependencies are added as expected.

Known workarounds

Add the transitive dependencies manually and pin them to the required version.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the failure with the linked paket-bugreport sample: create the .NET 4 Client Profile project, add Dropbox.Api, and inspect the generated dependencies and references files. Compare Paket's result with Visual Studio's resolved dependencies, then verify that the project compiles without manually pinning the transitive packages.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp
Domain
tooling
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.