Skip to content

Commit e8cd6a1

Browse files
authored
Add breaking change documentation for new dotnet list package audit source warning (#48779)
1 parent cdce86b commit e8cd6a1

File tree

3 files changed

+45
-0
lines changed

3 files changed

+45
-0
lines changed

docs/core/compatibility/8.0.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,7 @@ If you're migrating an app to .NET 8, the breaking changes listed here might aff
143143
| [Runtime-specific apps not self-contained](sdk/8.0/runtimespecific-app-default.md) | Source/binary incompatible |
144144
| [--arch option doesn't imply self-contained](sdk/8.0/arch-option.md) | Behavioral change |
145145
| ['dotnet restore' produces security vulnerability warnings](sdk/8.0/dotnet-restore-audit.md) | Behavioral change |
146+
| ['dotnet list package' warns if source doesn't provide vulnerability data](sdk/8.0/dotnet-list-package-audit-source-warning.md) | Behavioral change |
146147
| [SDK uses a smaller RID graph](sdk/8.0/rid-graph.md) | Behavioral change/Source incompatible |
147148
| [Setting DebugSymbols to false disables PDB generation](sdk/8.0/debugsymbols.md) | Behavioral change |
148149
| [Source Link included in the .NET SDK](sdk/8.0/source-link.md) | Source incompatible |
Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
---
2+
title: "Breaking change: 'dotnet list package' warns if source doesn't provide vulnerability data"
3+
description: "Learn about the breaking change in .NET 8 where 'dotnet list package --vulnerable' emits a warning when audit sources don't support VulnerabilityInfoResource."
4+
ms.date: 09/29/2025
5+
ai-usage: ai-assisted
6+
ms.custom: https://github.com/dotnet/docs/issues/42608
7+
---
8+
# 'dotnet list package' warns if source doesn't provide vulnerability data
9+
10+
When using `dotnet list package --vulnerable`, if a configured `auditsources` doesn't support `VulnerabilityInfoResource`, a warning is now shown to inform the user that the source doesn't provide vulnerability data.
11+
12+
## Version introduced
13+
14+
.NET 8
15+
16+
## Previous behavior
17+
18+
Previously, the command silently skipped `auditsource` sources that lacked vulnerability information.
19+
20+
## New behavior
21+
22+
Starting in .NET 8, the command emits a warning:
23+
24+
> Audit source '{0}' did not provide any vulnerability data.
25+
26+
This warning helps users understand why certain sources might not influence the reported vulnerabilities.
27+
28+
## Type of breaking change
29+
30+
This is a [behavioral change](../../categories.md#behavioral-change).
31+
32+
## Reason for change
33+
34+
This warning came as part of the work to allow customers to use `auditsources` when running the `dotnet list package` command. The warning helps users understand when configured audit sources don't provide the expected vulnerability information.
35+
36+
## Recommended action
37+
38+
Check the specified `auditsources` to ensure it supports `VulnerabilityInfoResource`. If it doesn't, either update the source or replace it with one that provides vulnerability data.
39+
40+
## Affected APIs
41+
42+
None.

docs/core/compatibility/toc.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -488,6 +488,8 @@ items:
488488
href: sdk/8.0/dotnet-publish-config.md
489489
- name: "'dotnet restore' produces security vulnerability warnings"
490490
href: sdk/8.0/dotnet-restore-audit.md
491+
- name: "'dotnet list package' warns if source doesn't provide vulnerability data"
492+
href: sdk/8.0/dotnet-list-package-audit-source-warning.md
491493
- name: Duplicate output for -getItem, -getProperty, and -getTargetResult
492494
href: sdk/8.0/getx-duplicate-output.md
493495
- name: Implicit `using` for System.Net.Http no longer added

0 commit comments

Comments
 (0)