Skip to content

Can't use pre-release nuget packages? #180

@knocte

Description

@knocte

Description

Trying to add a pre-release nuget package reference to my projects yields an error.

Repro steps

  1. Use the adviced command: dotnet add myProject/myProject.fsproj package FSharpx.Collections --version 3.0.0-alpha2021.09.17.065817

  2. Try adding the --source flag too: dotnet add myProject/myProject.fsproj package FSharpx.Collections --version 3.0.0-alpha2021.09.17.065817 --source https://nuget.pkg.github.com/fsprojects/index.json

Expected behavior

Should add the PackageReference to the .fsproj file.

Actual behavior

Gives this error:

  Determining projects to restore...
  Writing /var/folders/kj/152c8zjj40lfmxd3dbjf_2kw0000gp/T/tmpG5r3iC.tmp
info : Adding PackageReference for package 'FSharpx.Collections' into project 'myProject/myProject.fsproj'.
error: '3.0.0-alpha2021.09.17.065817' is not a valid version string.

Related information

  • Operating system: tested with macOS 11.6
  • Branch: master (latest pre-release from master branch)
  • .NET Runtime: 5.0.401

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