Skip to content

Latest commit

 

History

History
25 lines (19 loc) · 993 Bytes

File metadata and controls

25 lines (19 loc) · 993 Bytes
title NuGet Error NU1109
description NU1109 error code
author nkolev92
ms.author nikolev
ms.date 11/07/2022
ms.topic reference
f1_keywords
NU1109

NuGet Error NU1109

NU1109: Detected package downgrade: B from 2.0.0 to centrally defined 1.0.0. Update the centrally managed package version to a higher version.

'Project' -> 'A' 1.0.0 -> 'B' (>= 2.0.0)

'Project' -> 'B' (>= 1.0.0)

Issue

A dependency package specified a version constraint on a higher version of a package than restore ultimately resolved. That is because of the direct-dependency-wins rule - when resolving packages, the direct package version in the subgraph will override that of the distant packages with the same ID.

Solution

Update the PackageVersion of B to to the higher version of the package. In the example above, you would change the package reference to B 2.0.0.