Skip to content

NuGet warning NU1604 when restoring an F# project for net4.6.1 #12778

@ericstj

Description

@ericstj

Repro steps

Provide the steps required to reproduce the problem:

  1. Create a new F# project targeting any of [net40, net47]
  2. Restore that project.

See attached.
fs.zip

Expected behavior

Restores cleanly

Actual behavior

Emits a warning:

C:\scratch\fs\fs.fsproj : warning NU1604: Project dependency System.ValueTuple does not contain an inclusive lower bound. Include a lower bound in the dependency version to ensure consistent restore results.

Known workarounds

Specify either

<DisableImplicitSystemValueTupleReference>true</DisableImplicitSystemValueTupleReference>

or

<DefaultValueTuplePackageVersionValue>4.4.0</DefaultValueTuplePackageVersionValue>

The former omits the reference, the latter specifies the version. Alternatively, one could NoWarn NU1604.

Related information

Regression seems to be caused by b0a5470#diff-41dc74557da02c35657b2d25e250af7b9bedfa5de211c57ebfcd3b91a2f63a7dL76-R80

Which no longer uses DefaultValueTuplePackageVersion defined in the props.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Area-SetupAndDeliverySetup, packages, templates, SDK, delivery channelsBugImpact-Low(Internal MS Team use only) Describes an issue with limited impact on existing code.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions