Sitelet https://github.com/fsprojects/Paket/issues/1591
Skip to content

Convert-from-nuget modifies package versions X.Y.0 to X.Y #1591

Description

@FrenchMigVaz

Description

When converting a codebase from NuGet to Paket using the command convert-with-paket, the process does modify package versions formed as X.Y.0 to X.Y
This causes no problem when the nuget source is nuget.org, but with Artifactory pro, the restore fails to find version X.Y, while X.Y.0 exists

Repro steps

  1. Using repository https://github.com/Vilmir/ReproPaketMigrationVersionConversion
  2. Run a paket.exe convert-from-nuget command

Expected behavior

Paket shall pin EntityFramework to 6.1.0

Actual behavior

Paket will pin EntityFramework to version 6.1

Resolving packages for group Main:
 - EntityFramework is pinned to 6.1

Restore fails if the nuget source is Artifactory - I cannot share our Artifactory server for repro, it is only available from our Intranet

Known workarounds

I haven't found a workaround.
I have tried to run convert-from-nuget --no-install --no-auto-restore and then modify the version in paket.dependencies to 6.1.0, but the restore still fails, trying to look for 6.1

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions