dotnet/templating

Consider providing the current context path of "dotnet new" as a bound symbol

egvijayanand opened this issue · 4 comments

Is your feature request related to a problem? Please describe.

Consider providing the current context path of "dotnet new" as a bound symbol.

This is necessary for certain evaluations like relative path.

Describe the solution you'd like.

A bound symbol, similar to bind:HostIdentifier.

Additional context

CLI templating symbols that are defined in the file template.json.

This makes perfect sense to me -would you be interested in adding this bound symbol?

@baronfel Have added a PR for this. Hope this is the necessary change.

Kindly let me know your feedback.

Closing as #7472 has been merged. Thank you @egvijayanand, and sorry about the delay!