-
Notifications
You must be signed in to change notification settings - Fork 266
Closed
NuGet/NuGet.Client
#6997Labels
Category:Quality WeekIssues that should be considered for quality weekIssues that should be considered for quality weekFunctionality:ListPackagedotnet.exe list packagedotnet.exe list packagePriority:2Issues for the current backlog.Issues for the current backlog.Product:dotnet.exeType:Bughelp wantedConsidered good issues for community contributions.Considered good issues for community contributions.
Milestone
Description
NuGet Product Used
dotnet.exe
Product Version
.NET SDK 8.0.100
Worked before?
No response
Impact
It bothers me. A fix would be nice
Repro Steps & Context
dotnet new classlib --framework netstandard2.0dotnet list package --format=json --output-version=1
The output is:
{
"version": 1,
"parameters": "",
"problems": [
{
"level": "warning",
"text": "(A) : Auto-referenced package."
}
],
"projects": [
{
"path": "C:/Users/Kalle/AppData/Local/Temp/PkgDemo/PkgDemo.csproj",
"frameworks": [
{
"framework": "netstandard2.0",
"topLevelPackages": [
{
"id": "NETStandard.Library",
"requestedVersion": "[2.0.3, )",
"resolvedVersion": "2.0.3",
"autoReferenced": "true"
}
]
}
]
}
]
}In the "problems" array, there is a warning "(A) : Auto-referenced package." This warning is useless and should not be output, because:
- Auto-referencing a package is a normal situation, not something that should be warned about.
- The warning seems intended as a legend for the "(A)" notation, but the JSON output does not use that notation.
- The JSON output includes "autoReferenced" as a per-package property. Software that cares about auto-referenced packages can read that property and won't need the warning.
Verbose Logs
dotnet list package --format=json --output-version=1 --verbosity diag does not output anything more than the same command without --verbosity diag.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
Category:Quality WeekIssues that should be considered for quality weekIssues that should be considered for quality weekFunctionality:ListPackagedotnet.exe list packagedotnet.exe list packagePriority:2Issues for the current backlog.Issues for the current backlog.Product:dotnet.exeType:Bughelp wantedConsidered good issues for community contributions.Considered good issues for community contributions.