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

Paket convert-from-nuget crash on nuget syntax #3151

Description

@tebeco

Description

paket does not read nuget constraints before parsing SemVer

Repro steps

  1. Create a project
  2. Add a package
  <ItemGroup>
    <PackageReference Include="MyPackage" Version="[1.0.0]" />
  </ItemGroup>
  1. Run dotnet restore
  2. It works
  3. paket convert-form-nuget --force
    bang

Paket failed with
-> Can't parse "[1.0.0]". System.ArgumentException: SemVer.Parse

Expected behavior

Read nuget constraints syntax

Actual behavior

Crash on convert

Known workarounds

None


image

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions