Make it easier to invoke templates from other ecosystems/tools as .NET templates #7096
Labels
need-pm-discussion
Need agreement from PM that the issue aligns to targeted stories for any of the next 2 releases
Is your feature request related to a problem? Please describe.
The JS Project System templates for Visual Studio have lightweight VS template wrappers that guide the invocation of various
npm init
templates. For examplenpm init vue@latest <appName> -- [various flags]
.It would be great if there was a way to 'delegate' the template invocation to another binary in this way. Ideally a template could be very lightweight and consist of a number of options/flags that the dotnet CLI could surface and transform, then pass to the command/tool that is going to be invoked. The actual generation would be delegated to the 'base command', and the template engine itself might not be invoked at all for content processing.
Describe the solution you'd like.
I'd like a way to define a
template.json
that might do something like:The idea being that we could define symbols and condition the include/exclude of arguments to the base command based on those symbols.
Additional context
No response
The text was updated successfully, but these errors were encountered: