dotnet / dotnet/templating

Make dotnet new post actions extendable via components

Open
#3,225 1 comment 9 reactions 0 assignees View on GitHub
area: authoring Priority:2 triage:transfer-to-sdk triaged
Dominant language
No language data
Stars
1.7k
Forks
399
Avg merge
3d 5h
Merged PRs (30d)
39

Description

The post action managed by `dotnet new` are already managed by components, however the interface to implement the processor is not public.

- move `IPostActionProcessor` interface to `Abstractions` to make it public, so the template authors can implement it.

The assembly with implemented interface may be installed using [components](https://github.com/dotnet/templating/issues/2942).

Also other host developers may consider using the same interface to implement extendable set of post actions for the host.

Consider moving [PostActionDispatcher](https://github.com/dotnet/sdk/blob/main/src/Cli/Microsoft.TemplateEngine.Cli/PostActionDispatcher.cs) to `Microsoft.TemplateEngine.Edge` so the implementation can be shared for all the hosts.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.