Community.VisualStudio.Toolkit icon indicating copy to clipboard operation
Community.VisualStudio.Toolkit copied to clipboard

VS Build Scope

Open Tim-Maes opened this issue 1 year ago • 1 comments

I am migrating an VS2019 extension to VS2022. I'm trying to get projects withing build scope as I would do with DTE image How can this be achieved with the toolkit?

Tim-Maes avatar Feb 08 '23 10:02 Tim-Maes

GetProjectsInBuildScope appears to be an extension method: https://github.com/Tim-Maes/T4Executer/blob/14021a7c6462f688c433e5f97905d8536d766e3a/TTExecuter/Extensions/DTEExtensions.cs#L14-L22

It should be easy enough to convert to the toolkit.

For the solution scope:

VS.Solutions.GetAllProjectsAsync();

For the project scope:

VS.Solutions.GetActiveProjectAsync();

reduckted avatar Feb 11 '23 11:02 reduckted