templating icon indicating copy to clipboard operation
templating copied to clipboard

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

Open egvijayanand opened this issue 1 year ago • 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.

egvijayanand avatar Jan 17 '24 17:01 egvijayanand

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

baronfel avatar Jan 17 '24 18:01 baronfel

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

Kindly let me know your feedback.

egvijayanand avatar Jan 18 '24 01:01 egvijayanand

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

baronfel avatar May 31 '24 17:05 baronfel

@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.

egvijayanand avatar Aug 11 '24 16:08 egvijayanand