Error NU1605 Detected package downgrade

前端 未结 5 1533
野趣味
野趣味 2021-02-11 12:00

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

NU1605  Detected package downgrade: System.Dia         


        
5条回答
  •  清酒与你
    2021-02-11 12:35

    Something that I've run into that causes this error is having multiple references to the same package in one or more .csproj files. In our case, these references are to local dependencies in our own nuget repository.

    This is invisible to a developer in Visual Studio, so you need to open the .csproj file in a separate editor.

    For my team, I think the cause is a combo of a lot of churn in both a dependent library and the solution that consumes that dependency. For whatever reason, a git merge will take both versions in the .csproj file without raising a conflict. In several project files, I found 3 versions of the same dependency.

提交回复
热议问题