Closed mirrortom closed 1 year ago
You can use SolutionExplorerWindow
.
SolutionExplorerWindow? solutionExplorer = VS.Windows.GetSolutionExplorerWindowAsync();
if (solutionExplorer is not null) {
foreach (SolutionItem item in await solutionExplorer.GetSelectionAsync()) {
// ...
}
}
I tried this API and it work! Thank you for your reply!
in the solution window , some file selected by the mouse , how to get them? I didn't find an API for this , help.
var project = await VS.Solutions.GetActiveProjectAsync();