Skip to content

Commit 38241d7

Browse files
authored
Document Package Source Mapping error NU1110 (#3169)
1 parent c220483 commit 38241d7

File tree

3 files changed

+38
-0
lines changed

3 files changed

+38
-0
lines changed

docs/TOC.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -162,6 +162,7 @@
162162
### [NU1107](reference/errors-and-warnings/NU1107.md)
163163
### [NU1108](reference/errors-and-warnings/NU1108.md)
164164
### [NU1109](reference/errors-and-warnings/NU1109.md)
165+
### [NU1110](reference/errors-and-warnings/NU1110.md)
165166
### [NU1201](reference/errors-and-warnings/NU1201.md)
166167
### [NU1202](reference/errors-and-warnings/NU1202.md)
167168
### [NU1203](reference/errors-and-warnings/NU1203.md)

docs/reference/Errors-and-Warnings.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ NuGet supports the following configuration properties.
2929
| --- | --- |
3030
| Invalid input errors | [NU1001](./errors-and-warnings/NU1001.md), [NU1002](./errors-and-warnings/NU1002.md), [NU1003](./errors-and-warnings/NU1003.md), [NU1004](./errors-and-warnings/NU1004.md), [NU1005](./errors-and-warnings/NU1005.md), [NU1006](./errors-and-warnings/NU1006.md), [NU1007](./errors-and-warnings/NU1007.md), [NU1008](./errors-and-warnings/NU1008.md), [NU1009](./errors-and-warnings/NU1009.md), [NU1010](./errors-and-warnings/NU1010.md), [NU1011](./errors-and-warnings/NU1011.md), [NU1012](./errors-and-warnings/NU1012.md), |
3131
| Missing package and project errors | [NU1100](./errors-and-warnings/NU1100.md), [NU1101](./errors-and-warnings/NU1101.md), [NU1102](./errors-and-warnings/NU1102.md), [NU1103](./errors-and-warnings/NU1103.md), [NU1104](./errors-and-warnings/NU1104.md), [NU1105](./errors-and-warnings/NU1105.md), [NU1106](./errors-and-warnings/NU1106.md), [NU1107](./errors-and-warnings/NU1107.md), [NU1108](./errors-and-warnings/NU1108.md), [NU1109](./errors-and-warnings/NU1109.md) |
32+
| Package source mapping errors | [NU1110](./errors-and-warnings/NU1110.md)
3233
| Compatibility errors | [NU1201](./errors-and-warnings/NU1201.md), [NU1202](./errors-and-warnings/NU1202.md), [NU1203](./errors-and-warnings/NU1203.md), [NU1204](./errors-and-warnings/NU1204.md), [NU1401](./errors-and-warnings/NU1401.md), [NU1402](./errors-and-warnings/NU1402.md), [NU1403](./errors-and-warnings/NU1403.md) |
3334
| Dotnet Tool restore errors | [NU1211](./errors-and-warnings/NU1211.md), [NU1212](./errors-and-warnings/NU1212.md), [NU1213](./errors-and-warnings/NU1213.md) |
3435
| NuGet source errors | [NU1301](./errors-and-warnings/NU1301.md) |
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
---
2+
title: NuGet Error NU1110
3+
description: NU1110 error code
4+
author: donnie-msft
5+
ms.author: eagoodso
6+
ms.date: 10/27/2023
7+
ms.topic: reference
8+
f1_keywords:
9+
- "NU1110"
10+
---
11+
12+
# NuGet Error NU1110
13+
14+
<pre>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.
15+
</pre>
16+
17+
### Issue
18+
19+
A previous restore retrieved package `B` from a package source which your current solution does not have configured.
20+
21+
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](../../consume-packages/managing-the-global-packages-and-cache-folders.md)), and the accompanying `nupkg.metadata` indicates a `Source` value which it cannot find in your solution.
22+
23+
When [package source mapping](../../consume-packages/Package-Source-Mapping.md) is enabled, NuGet attempts to map transitive dependencies automatically by analyzing the source in the Global packages folder.
24+
25+
### Solution
26+
27+
#### Option 1.
28+
Create a package source mapping for package `B`.
29+
30+
#### Option 2.
31+
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](../../consume-packages/managing-the-global-packages-and-cache-folders.md).
32+
33+
If your other solutions have different package sources and package source mapping configurations, this option may not be feasible.
34+
35+
#### Option 3.
36+
Consider enabling a package source which you know has package `B` available.

0 commit comments

Comments
 (0)