dotnet / dotnet/project-system
Make long diagnostic messages in the Dependencies tree easier to consume
- Dominant language
- C#
- Stars
- 1k
- Forks
- 415
- PR merge metrics
- No merged PRs in 30d
Description
When a project or package reference has an error/warning, the message is shown in the Dependencies tree as a child item (modulo #3780 which will be fixed soon).

Some diagnostics are very hard to read when presented this way, depending upon the format of the message produced by NuGet.
We should have a general way to make consuming these messages easier.
The error text is available in both the Error List:

And the browse object:

Customer [feedback](https://developercommunity.visualstudio.com/content/problem/963841/fix-this-very-long-error-in-solution-explorer-tree.html) is that the Error List is not discoverable enough, and I expect the same is true of the properties panel.
Ideas:
- If the message is a single line of text, wrap the tree item's caption at a fixed number of characters.
- Add a context menu item to copy the text to the clipboard.
- Produce a richer tool tip (this will be possible once #5697 is complete)
Contributor guide
Assessment
This issue has not been assessed yet.