What does the “Detected packet downgrade” warning mean?

When I start dotnet restore(or start package recovery in Visual Studio), I see warnings like this:

  • /usr/local/share/dotnet/sdk/1.0.4/NuGet.targets(97,5): warning: detected package downgrade: Microsoft.EntityFrameworkCore.Design from 1.1.1 to 1.0.3 [/ Users / markamery / somesolution /SomeSolution.sln]
  • /usr/local/share/dotnet/sdk/1.0.4/NuGet.targets(97,5): warning: SomeProject (> = 1.0.0) → Microsoft.EntityFrameworkCore.Tools (> = 1.1.0) → Microsoft. EntityFrameworkCore.Design (> = 1.1.1) [/Users/markamery/somesolution/SomeSolution.sln]
  • /usr/local/share/dotnet/sdk/1.0.4/NuGet.targets(97,5): warning: SomeProject (> = 1.0.0) → Microsoft.EntityFrameworkCore.Design (> = 1.0.3) [/ Users /markamery/somesolution/SomeSolution.sln]

I am struggling to make out the meaning of the warning above. I don’t understand different things:

  • What is “downgrading" in this context?
  • What causes a "packet drop"?
  • What do the lines below "Detected packet downgrade" mean? In particular, what do arrows ( ->) convey between packets?
+4
source share
1 answer

In this case, the dependency graph refers to two versions Microsoft.EntityFrameworkCore.Design. This is indicated by lines containing ->:

, Microsoft.EntityFrameworkCore.Tools version 1.1.0, , , , Microsoft.EntityFrameworkCore.Design 1.1.1.

, Microsoft.EntityFrameworkCore.Design 1.0.3.

NuGet , :

, , , . .

, , . , NuGet , , , . :

Nearest Wins , . , .

+10

Source: https://habr.com/ru/post/1678343/


All Articles