templating
templating copied to clipboard
Consider providing the current context path of "dotnet new" as a bound symbol
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!
@baronfel I have confirmed that the bind symbol is now included in .NET 9 Preview 6. However, the Wiki has not been updated yet. Hopefully, this will be addressed in the next preview.
Thank you for your kind cooperation.
Is there an option to backport this feature to .NET 8, an LTS release? This would benefit many users, as it’s a straightforward property and should not pose any issues.