You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
dotnet list package --format json generates invalid JSON output on error in PT-BR translation #57063
The command dotnet list package --format json generates invalid JSON with non-espaced double quotes in error message when the dotnet restore fails. The "text" property contains non-escaped literal double quotes, so the JSON parsing fails.
Steps to reproduce
Inside an empty folder, create an empty .csproj file and run the command dotnet list package --format json
Expected behavior
Output message in english:
{ "version": 1, "problems": [ { "text": "Restore failed. Run `dotnet restore` for more details on the issue.", "level": "error" } ] }
Output with PT-BR localized text:
{ "version": 1, "problems": [ { "text": "Falha na restauração. Execute `dotnet restore` para obter mais detalhes sobre o problema.", "level": "error" } ] }
Actual behavior
Output with PT-BR localized text:
{ "version": 1, "problems": [ { "text": "Falha na restauração. Execute "dotnet restore" para obter mais detalhes sobre o problema.", "level": "error" } ] }
The double quotes instead of backticks around dotnet restore are breaking the JSON syntax.
🟩 Confidence:high - Issue directly concerns dotnet list package output, owned by the NuGet area.
➡️ Summary: dotnet list package --format json emits invalid JSON when the localized restore-failed message (PT-BR) contains unescaped double quotes. Follow up by fixing the localized resource or escaping the text.
Generated by 🏷️ Issue Triage for #57063 · copilot · auto · ~14 AIC · ⌖ ~1 AIC · ⊞ 14.6K · ◷
Thanks for creating this issue! We believe this issue is related to NuGet tooling, which is maintained by the NuGet team. Thus, we closed this one and encourage you to raise this issue in the NuGet repository instead. Don’t forget to check out NuGet’s contributing guide before submitting an issue!
If you believe this issue was closed out of error, please comment to let us know.
Activity
github-actions commentedon Nov 11, 2026
🎯 Agentic Issue Triage
Triage Assessment:
@zivkan| @dotnet/nuget-teamhigh- Issue directly concernsdotnet list packageoutput, owned by the NuGet area.➡️ Summary:
dotnet list package --format jsonemits invalid JSON when the localized restore-failed message (PT-BR) contains unescaped double quotes. Follow up by fixing the localized resource or escaping the text.dotnet-policy-service commentedon Nov 11, 2026
Thanks for creating this issue! We believe this issue is related to NuGet tooling, which is maintained by the NuGet team. Thus, we closed this one and encourage you to raise this issue in the NuGet repository instead. Don’t forget to check out NuGet’s contributing guide before submitting an issue!
If you believe this issue was closed out of error, please comment to let us know.
Happy Coding!