Error NU1605 Detected package downgrade

前端 未结 3 1771
清酒与你
清酒与你 2021-02-11 12:07

I am experiencing the following NU1605 dependency errors in my netcoreapp2.0 console application:

NU1605  Detected package downgrade: System.Dia         


        
3条回答
  •  生来不讨喜
    2021-02-11 12:49

    Error NU1605 Detected package downgrade

    For the error NU1605:

    You can use NU1605 to clear the WarningsAsErrors in your project.

    That because netcoreapp2.0 projects have NU1605 by default. Check it from Properties->Build->Treat warning as errors:

    Add like following:

    
          NU1605
    
    

    Check the blog post here: MSBuild integration of NuGet warnings and errors and Unexpected package version warnings.

    For the error NU1603:

    The warning occurs because System.Runtime.Handles (>= 4.1.0) does not exist in the feed. Typically this is a package authoring error because the package depends on something that doesn't exist.

    You can also use NU1603 to resolve this issue:

    
          NU1603
    
    

    Note:You would notice that your project has another warning, notice the yellow triangle insignia on the PackageReference DotSpinners on Reference. That because the package DotSpinners is a .NET Framework project, not compatible with your .NET Core project.

    Hope this helps.

提交回复
热议问题