Skip to content

Latest commit

 

History

History
35 lines (27 loc) · 1.41 KB

File metadata and controls

35 lines (27 loc) · 1.41 KB
title NuGet Error NU1107
description NU1107 error code
author zhili1208
ms.author lzhi
ms.date 06/25/2018
ms.topic reference
ms.reviewer anangaur
f1_keywords
NU1107
NU1607

NuGet Error NU1107

Version conflict detected for 'PackageA'. Install/reference 'PackageA' v4.0.0 directly to resolve this issue.
'PackageB' 3.5.0 -> 'PackageA' (= 3.5.0)
'PackageC' 4.0.0 -> 'PackageA' (= 4.0.0)

Issue

Unable to resolve dependency constraints between packages. Two different packages are asking for two different versions of 'PackageA'. The project needs to choose which version of 'PackageA' to use.

Solution

Install/reference 'PackageA' directly (in the project file) with the exact version that you choose. Generally, picking the higher version is the right choice.

To install a specific version, see the information for the tool that you're using:

[!INCLUDE nugetsolver-tool]

Note

Early versions of Visual Studio 2017 may have reported this as a warning (NU1607).