Skip to content

150+ warnings when building VisualFSharp from VS: NU1605: Detected package downgrade: [...] #3629

@abelbraaksma

Description

@abelbraaksma

As in the title, a large number of NU1605 Detected Package Downgrade are reported.

Can this warning be ignored? Is it safe to switch off for the project? Or is it a sign that in my build I am referencing the wrong packages? (and if so, please advise).

Repro steps

Just build FSharp.sln from within Visual Studio 2017.

Expected behavior

No warnings.

Actual behavior

Many warnings as mentioned in the title. Here's the full list:

Restoring NuGet packages...
To prevent NuGet from restoring packages during build, open the Visual Studio Options dialog, click on the Package Manager node and uncheck 'Allow NuGet to download missing packages during build.'
NU1605: Detected package downgrade: System.Collections.Immutable from 1.3.1 to 1.2.0. Reference the package directly from the project to select a different version. 
 FSharp.Compiler.Private (>= 1.0.0) -> System.Reflection.Metadata (>= 1.4.2) -> System.Collections.Immutable (>= 1.3.1) 
 FSharp.Compiler.Private (>= 1.0.0) -> System.Collections.Immutable (>= 1.2.0)
NU1605: Detected package downgrade: System.IO.FileSystem.Primitives from 4.3.0 to 4.0.1. Reference the package directly from the project to select a different version. 
 FSharp.Core.Unittests (>= 1.0.0) -> Microsoft.NETCore.App (>= 1.0.1) -> NETStandard.Library (>= 1.6.0) -> System.Console (>= 4.0.0) -> runtime.unix.System.Console (>= 4.3.0) -> System.IO.FileSystem.Primitives (>= 4.3.0) 
 FSharp.Core.Unittests (>= 1.0.0) -> Microsoft.NETCore.App (>= 1.0.1) -> NETStandard.Library (>= 1.6.0) -> System.IO.FileSystem.Primitives (>= 4.0.1)
NU1605: Detected package downgrade: System.Runtime.Handles from 4.3.0 to 4.0.1. Reference the package directly from the project to select a different version. 
 FSharp.Core.Unittests (>= 1.0.0) -> Microsoft.NETCore.App (>= 1.0.1) -> NETStandard.Library (>= 1.6.0) -> System.Console (>= 4.0.0) -> runtime.unix.System.Console (>= 4.3.0) -> System.Runtime.Handles (>= 4.3.0) 
 FSharp.Core.Unittests (>= 1.0.0) -> Microsoft.NETCore.App (>= 1.0.1) -> NETStandard.Library (>= 1.6.0) -> System.Runtime.Handles (>= 4.0.1)
NU1605: Detected package downgrade: System.Threading from 4.3.0 to 4.0.11. Reference the package directly from the project to select a different version. 
<snip />
... some 150 more of these warnings

Known workarounds

None, but I would love to hear about them!

Related information

Visual Studio 2017 15.4.0 Preview 2, most recent master of FSharp.sln. Installed nightlies (though I doubt these matter, as these are NuGet warnings).

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions