dotnet / templating

This repo contains the Template Engine which is used by dotnet new
https://docs.microsoft.com/dotnet/
MIT License
1.59k stars 363 forks source link

[Epic] Components #2942

Open bekir-ozturk opened 3 years ago

bekir-ozturk commented 3 years ago

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 in ComponentManager class. At the moment the only way to install additional components is from code (adding components via ITemplateEngineHost or adding components via IEngineEnvironmentSettings.ComponentManager. To allow extensibility scenario:

Already defined components suitable for extensibility for template authoring:

Missing parts:

Justification

Related issues:

PascalSenn commented 2 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?

pksorensen commented 2 years ago

Can we get an example of doing post actions, implementing IPostActionProcessor. Still seems like its not possible

vlada-shubina commented 1 year ago

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.