project-system
project-system copied to clipboard
Adding a reference via UI doesn't expand node
In legacy csproj, adding a reference or other reference expands to that node. This doesn't happen in the new dependency node. It feels a little disconcerting actually if the node isn't expanded because you can't see a visual change.
The only place we can do it in Add Reference dialog or Nuget Package Manager dialog , since only there we know explicitly , that new dependency was added. All other updates (editing project file etc) would result in DT builds and we don't know what happened. So we might expose some API - "find and show dependency" for active target framework. Dialogs would call this API when they know that new dependency was added.
@drewnoakes - is this doable? I can see how this may be a bit out of the norm.
We would need #3426 in order to know that Solution Explorer has been updated with the new dependency, then we'd need to find the relevant Solution Explorer APIs to expand nodes until the newly created node is shown.