Open bekir-ozturk opened 3 years ago
We would like to fetch a json file from a web service based on the parameter that is provided with dotnet new
.
Ready thorugh the issues, this could be a way of doing it. Is there any progress on this? As we would need a customer PostAction
as i believe?
Can we get an example of doing post actions, implementing IPostActionProcessor. Still seems like its not possible
Unfortunately we still don't have a timeframe for this feature, hence implementing custom post actions is not possible. Having more feedback on why the feature is important for you may help to prioritize it for the further releases.
Audience: authors (advanced)
Background
Allow custom extensibility scenarios for the templates.
The template engine already considers extensibility by using components. Component is a class implementing
IIdentifiedComponent
interface. Template engine is managing components inComponentManager
class. At the moment the only way to install additional components is from code (adding components viaITemplateEngineHost
or adding components viaIEngineEnvironmentSettings.ComponentManager
. To allow extensibility scenario:Scanner.ScanForComponents
method. Detected components are not saved to settings.dotnet new
.Already defined components suitable for extensibility for template authoring:
IGenerator
)IMacro
and its derived classes)ITemplateConstraintFactory
)IPostActionProcessor
Missing parts:
Justification
Related issues:
IPostActionProcessor
component to Abstractions https://github.com/dotnet/templating/issues/3225