|
1 | 1 | --- |
2 | | -title: "Breaking change: New warning introduced in dotnet list package command" |
3 | | -description: "Learn about the breaking change in .NET 8 where dotnet list package --vulnerable emits a warning when audit sources don't support the VulnerabilityInfoResource." |
4 | | -ms.date: 01/18/2025 |
| 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 | 5 | ai-usage: ai-assisted |
6 | 6 | ms.custom: https://github.com/dotnet/docs/issues/42608 |
7 | 7 | --- |
8 | | -# New warning introduced in dotnet list package command |
| 8 | +# 'dotnet list package' warns if source doesn't provide vulnerability data |
9 | 9 |
|
10 | | -When using `dotnet list package --vulnerable`, if a configured `auditsources` does not support the `VulnerabilityInfoResource`, a warning is now shown to inform the user that the source does not provide vulnerability data. |
| 10 | +When using `dotnet list package --vulnerable`, if a configured `auditsources` does not support `VulnerabilityInfoResource`, a warning is now shown to inform the user that the source doesn't provide vulnerability data. |
11 | 11 |
|
12 | 12 | ## Version introduced |
13 | 13 |
|
14 | 14 | .NET 8 |
15 | 15 |
|
16 | 16 | ## Previous behavior |
17 | 17 |
|
18 | | -The command would silently skip `auditsource`s that lacked vulnerability information, because the command did not use `auditsources` as a source of vulnerability data. |
| 18 | +Previously, the command silently skipped `auditsource` sources that lacked vulnerability information. |
19 | 19 |
|
20 | 20 | ## New behavior |
21 | 21 |
|
22 | | -The command now emits a warning: |
23 | | -**`Audit source '{0}' did not provide any vulnerability data.`** |
24 | | -This helps users understand why certain sources may not influence the reported vulnerabilities. |
| 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 may not influence the reported vulnerabilities. |
25 | 27 |
|
26 | 28 | ## Type of breaking change |
27 | 29 |
|
28 | 30 | This is a [behavioral change](../../categories.md#behavioral-change). |
29 | 31 |
|
30 | 32 | ## Reason for change |
31 | 33 |
|
32 | | -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 are not providing the expected vulnerability information. |
| 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. |
33 | 35 |
|
34 | 36 | ## Recommended action |
35 | 37 |
|
36 | | -Check the specified `auditsources` to ensure it supports the `VulnerabilityInfoResource`. If it doesn't, either update the source or replace it with one that provides vulnerability data. |
| 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. |
37 | 39 |
|
38 | 40 | ## Affected APIs |
39 | 41 |
|
|
0 commit comments