Skip to content

Commit 919e0c5

Browse files
authored
Document project.json pack removal (#3452)
1 parent 5d42542 commit 919e0c5

File tree

2 files changed

+9
-4
lines changed

2 files changed

+9
-4
lines changed

docs/reference/errors-and-warnings/NU5015.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,16 @@ f1_keywords:
1111
---
1212

1313
# NuGet Error NU5015
14+
15+
> [!WARNING]
16+
> project.json support has been removed starting with [NuGet 7.0](../../release-notes/NuGet-7.0.md) and this error will no longer be raised.
17+
1418
> project.json cannot contain multiple Target Frameworks.
1519
1620
### Issue
1721

1822
The project.json file passed to NuGet pack operation contains multiple target frameworks.
1923

20-
2124
### Solution
2225

2326
Please fix the project.json file to contain only a single target framework.
24-

docs/reference/errors-and-warnings/NU5042.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,10 @@ f1_keywords:
99
- "NU5042"
1010
---
1111

12-
# NuGet Error NU5042
12+
# NuGet Error NU5042 (Obsolete)
13+
14+
> [!WARNING]
15+
> project.json support has been removed starting with [NuGet 7.0](../../release-notes/NuGet-7.0.md) and this error will no longer be raised.
1316
1417
> `project.json` pack is disabled in the current NuGet version, and will be permanently removed in a future version.
1518
> Please consider migrating 'MyProject' to `PackageReference` and using the pack targets.
@@ -21,4 +24,4 @@ NuGet.exe pack for project.json projects is not supported.
2124

2225
### Solution
2326

24-
Migrate your project to PackageReference and use the pack targets instead.
27+
[Migrate your project to PackageReference](../../archive/project-json.md#migrate-projectjson-to-packagereference) and use the pack targets instead.

0 commit comments

Comments
 (0)