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

Implement an abstract class for MSBuild Tasks to support dependency injection #6580

Closed
missymessa opened this issue Nov 18, 2020 · 1 comment

Comments

@missymessa
Copy link
Member

Based on this conversation here: #6526 (comment)

Providing an abstract class for MSBuild Task classes to implement will help support dependency injection in MSBuild Tasks. This should make it easier to bootstrap DI into existing MSBuild tasks so that we can mock out external dependencies when we write unit tests for the MSBuild Tasks.

Link to Chad's gist as a proof-of-concept for this: https://gist.github.com/ChadNedzlek/6b5ef4aa380e8d262539c5489348d3c1

@missymessa
Copy link
Member Author

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

1 participant