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

Latest commit

 

History

History
36 lines (25 loc) · 1.64 KB

File metadata and controls

36 lines (25 loc) · 1.64 KB
title NuGet Error NU1110
description NU1110 error code
author donnie-msft
ms.author eagoodso
ms.date 10/27/2023
ms.topic reference
f1_keywords
NU1110

NuGet Error NU1110

NU1110: The package `B` is available in the Global packages folder, but the source it came from `https://api.nuget.org/v3/index.json` is not one of the configured sources.

Issue

A previous restore retrieved package B from a package source which your current solution does not have configured.

While performing a package installation of package A, a dependent package B was needed transitively to complete the action. Restore found B in your Global packages folder), and the accompanying nupkg.metadata indicates a Source value which it cannot find in your solution.

When package source mapping is enabled, NuGet attempts to map transitive dependencies automatically by analyzing the source in the Global packages folder.

Solution

Option 1.

Create a package source mapping for package B.

Option 2.

Clear package B from your Global packages folder so that restore can download from one of your configured packages sources. For more information, see Managing the global packages, cache, and temp folders.

If your other solutions have different package sources and package source mapping configurations, this option may not be feasible.

Option 3.

Consider enabling a package source which you know has package B available.