豆豆友情提示:这是一个非官方 GitHub 代理镜像,主要用于网络测试或访问加速。请勿在此进行登录、注册或处理任何敏感信息。进行这些操作请务必访问官方网站 github.com。 Raw 内容也通过此代理提供。
Skip to content

Latest commit

 

History

History
36 lines (26 loc) · 1.84 KB

File metadata and controls

36 lines (26 loc) · 1.84 KB
title NuGet Error NU1102
description NU1102 error code
author zhili1208
ms.author lzhi
ms.date 06/25/2018
ms.topic reference
ms.reviewer anangaur
f1_keywords
NU1102

NuGet Error NU1102

Scenario 1

Unable to find package 'PackageId' with version (>= 9.0.1)
- Found 30 version(s) in 'sourceA' [ Nearest version: '4.0.0' ]
- Found 10 version(s) in 'sourceB' [ Nearest version: '4.0.0-rc-2129' ]
- Found 9 version(s) in 'sourceC' [ Nearest version: '3.0.0-beta-00032' ]
- Found 0 version(s) in 'sourceD'
- Found 0 version(s) in 'sourceE'

Issue

The package identifier is found but a version within the specified dependency range cannot be found on any of the sources. The range might be specified by a package and not the user.

Solution

Edit the project file to correct the package version. Also check that the NuGet configuration identifies the package sources your expect to be using. You may need to change the requested version if this package is referenced by the project directly.

Scenario 2

Unable to find package 'PackageId' with version (>= 9.0.1)
- Found 30 version(s) in 'sourceA' [ Nearest version: '4.0.0' ]
- Versions from sourceB were not considered

Issue

The package identifier is found but a version within the specified dependency range cannot be found on any of the sources. The range might be specified by a package and not the user.

Solution

Edit the project file to correct the package version. Check your NuGet.Config for the PackageSourceMapping configuration. The package version in question may be available on a source that is not configured.