Platform.MSBuild should allow generating a helper for registration of extensions #3494
Labels
Area: Testing Platform Extensions
Area: Testing Platform MSBuild
Area: Testing Platform
Belongs to the Microsoft.Testing.Platform core library
Area: xUnit
In-PR
sprint
Type: Feature
Milestone
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:
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
AB#2201333
The text was updated successfully, but these errors were encountered: