fsprojects / Paket

A dependency manager for .NET with support for NuGet packages and Git repositories.
https://fsprojects.github.io/Paket/
MIT License
2.02k stars 520 forks source link

Convert-From-Nuget ignores developmentDependency #4185

Open LeftofZen opened 1 year ago

LeftofZen commented 1 year ago

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>
  2. run paket convert-from-nuget
  3. 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