Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
egvijayanand opened this issue Jan 17, 2024 · 4 comments
Labels
area: authoring Enhancements to the process of authoring, maintaining, and testing templates

Comments

@egvijayanand
Copy link
Contributor

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.

@baronfel
Copy link
Member

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

@baronfel baronfel added the area: authoring Enhancements to the process of authoring, maintaining, and testing templates label Jan 17, 2024
@egvijayanand
Copy link
Contributor Author

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

Kindly let me know your feedback.

baronfel pushed a commit that referenced this issue May 31, 2024
* Added WorkingDirectory property

* Updated PublicAPI.Unshipped.txt

* API list and Docs updated

* Unshipped API list updated
@baronfel
Copy link
Member

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

@egvijayanand
Copy link
Contributor Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: authoring Enhancements to the process of authoring, maintaining, and testing templates
Projects
None yet
Development

No branches or pull requests

2 participants