Paket pack does not include dependencies from references
Nobody has claimed this yet.
- Dominant language
- F#
- Stars
- 2.1k
- Forks
- 528
- Avg merge
- 1d 12m
- Merged PRs (30d)
- 54
Description
Description
I have a project with several references in paket.references with versions defined at solution level paket.dependencies file.
When I run any of the following:
paket.exe pack output nugets pin-project-references lock-dependencies symbols include-referenced-projects -v
paket.exe pack output nugets symbols include-referenced-projects -v
paket.exe pack output nugets include-referenced-projects -v
The nupkg generated does not include any dependency.
Repro steps
-
Create a simple solution with a single project with SimpleInjector (for example) dependency.
-
Add paket.dependencies
nuget SimpleInjector 4.0.6
- Within the project add the paket.references to reference the dependency
SimpleInjector
- Create the template file within the project
{ProjectName}.paket.template
type project
requireLicenseAcceptance false
releaseNotes MyProject
copyright Copyright 2017
tags Tags
include-referenced-projects true
include-pdbs true
- Run paket pack output nugets include-referenced-projects
Expected behavior
The nupkg generated should contain a dependency to SimpleInjector 4.0.6
Actual behavior
The package is generated without dependencies.
Known workarounds
Adding dependencies manually to template adds them with vesrion 0.0.0
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the issue with paket.dependencies, paket.references, and the {ProjectName}.paket.template, then run paket pack with include-referenced-projects. Trace the paket pack entry point and verify that the generated nupkg declares SimpleInjector 4.0.6 as a dependency without requiring a manual template entry.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- fsharp
- Domain
- build-system, cli, tooling
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100