-
Notifications
You must be signed in to change notification settings - Fork 488
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
29 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
--- | ||
title: NuGet Warning NU1508 | ||
description: NU1508 warning code | ||
author: zivkan | ||
ms.author: zivkan | ||
ms.date: 08/10/2024 | ||
ms.topic: reference | ||
f1_keywords: | ||
- "NU1508" | ||
--- | ||
|
||
# NuGet Warning NU1508 | ||
|
||
## Scenario 1 | ||
|
||
> Duplicate 'NuGetAuditSuppress' items found. Remove the duplicate items or use the Update functionality to ensure a consistent restore behavior. The duplicate 'NuGetAuditSuppress' items are: https://contoso.test/cve/1 , https://contoso.test/cve/1 . | ||
### Issue | ||
|
||
Sometimes when adding `NuGetAuditSuppress` items, you may end up adding an item for a particular package multiple times. | ||
|
||
MSBuild projects commonly import multiple `.props` and `.targets` files, so the duplicates might not be in the same file, but may be in included files, such as `Directory.Build.props`, `Directory.Packages.props`, or `Directory.Build.targets`. | ||
|
||
### Solution | ||
|
||
Remove the duplicate item, so that it's included exactly once. |