fsprojects / fsprojects/Paket

Convert-From-Nuget ignores developmentDependency

Open
#4,185 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

Description

Convert-From-Nuget ignores developmentDependency

Repro steps
  1. Make a packages.config file (ie NuGet) with a developmentDependency, eg
<?xml version="1.0" encoding="utf-8"?>
  <packages>
    <package id="Microsoft.Net.Compilers" version="2.8.2" targetFramework="net462" developmentDependency="true" />
  </packages>
  1. run paket convert-from-nuget
  2. Observe that the output paket.dependencies and paket.references don't mention this development dependency anywhere - ie the output is the same regardless of whether developmentDependency is true or false, meaning paket is ignoring this flag.

Side note - nowhere in the paket documentation does it show how to support developmentDependency transitive dependencies in a project. I assume paket just flat-out doesn't support this flag from nuget?

Expected behavior

Output package.dependencies/references list the dependency as development

Actual behavior

Output package.dependencies/references does not list the dependency as development

Known workarounds

None that I know of

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 paket convert-from-nuget with the supplied packages.config, then trace the conversion handling for the developmentDependency attribute. Confirm the generated paket.dependencies and paket.references preserve the development dependency, and add or update coverage for both true and false values.

Written by the indexing model from the issue text.

Assessment

Tech stack
fsharp
Domain
tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 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.