Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

VS Build Scope #412

Open
Tim-Maes opened this issue Feb 8, 2023 · 1 comment
Open

VS Build Scope #412

Tim-Maes opened this issue Feb 8, 2023 · 1 comment

Comments

@Tim-Maes
Copy link

Tim-Maes commented Feb 8, 2023

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?

@reduckted
Copy link
Contributor

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();

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants