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

Platform.MSBuild should allow generating a helper for registration of extensions #3494

Closed
Evangelink opened this issue Aug 8, 2024 · 0 comments · Fixed by #3525
Closed

Comments

@Evangelink
Copy link
Member

Evangelink commented Aug 8, 2024

Summary

Generate some test application builder extension that registers all extensions exposing a "hook".

Background and Motivation

Microsoft.Testing.Platform.MSBuild can auto-generate an entry point (Main) in which it will add the registration of all the extensions that define a "hook". We should offer more flexibility by allowing to generate either the entry point or an extension method.

Having this separate extension method will help with:

  • xUnit v3 (cc @bradwilson)
  • explicit main
  • WinUI and UWP

Proposed Feature

In addition to the flag for generating the platform entry point, let's introduce another flag that allows to generate an extension method for registering the extensions exposing a "hook". I suggest to call this method AddAutoRegisteredExtensions.

Alternative Designs

  • None

AB#2201333

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment