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
I see how to get the active project when one item in the solution explorer is selected, but looking through all the issues and samples here I can't see anything that details how to handle a situation where multiple projects are selected.
I have a group that inserts in the right click menu of project, projects or solution folders
public static CommandGroupConfiguration Group =>
new CommandGroupConfiguration(
GroupPlacement.VsctParent(new Guid("d309f791-903f-11d0-9efc-00a0c911004f"), 0x0402, 0x0600),
GroupPlacement.VsctParent(new Guid("d309f791-903f-11d0-9efc-00a0c911004f"), 0x0418, 0x0600),
GroupPlacement.VsctParent(new Guid("d309f791-903f-11d0-9efc-00a0c911004f"), 0x041C, 0x0600))
{
Children =
[
GroupChild.Command<MyCommand>()
]
};
When multiple projects are selected I can see in the client context {[Shell.SelectedItemCount, 2]}
But i can't figure out how to then get which they are. Anything in the docs or samples around "ActiveProject" only seems to ever work with one.
Is this possible currently, without using the inproc sdk services?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
I see how to get the active project when one item in the solution explorer is selected, but looking through all the issues and samples here I can't see anything that details how to handle a situation where multiple projects are selected.
I have a group that inserts in the right click menu of project, projects or solution folders
When multiple projects are selected I can see in the client context
{[Shell.SelectedItemCount, 2]}But i can't figure out how to then get which they are. Anything in the docs or samples around "ActiveProject" only seems to ever work with one.
Is this possible currently, without using the inproc sdk services?
Beta Was this translation helpful? Give feedback.
All reactions