-
Notifications
You must be signed in to change notification settings - Fork 369
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
Improved dotnet new
ITEM templates context support
#3829
Comments
dotnet new
(evaluate MSBuild properties and namespace)
dotnet new
(evaluate MSBuild properties and namespace)dotnet new
ITEM templates context support
…ution implemented constraint based on project capability/ies implemented bind source for MSBuild properties
…ution implemented constraint based on project capability/ies implemented bind source for MSBuild properties
…ution implemented constraint based on project capability/ies implemented bind source for MSBuild properties
…ution implemented constraint based on project capability/ies implemented bind source for MSBuild properties
…ution implemented constraint based on project capability/ies implemented bind source for MSBuild properties
…ution implemented constraint based on project capability/ies implemented bind source for MSBuild properties
…ution implemented constraint based on project capability/ies implemented bind source for MSBuild properties
The work is completed in RC1 |
@vlada-shubina where are the docs for this? Been looking about these changes for days and I can't seem to find any references as the docs I can find are all messy and dispersed. |
@CesarD take a look at the in-repo docs here: https://github.com/dotnet/templating/blob/main/docs%2FBinding-and-project-context-evaluation.md |
Thanks @baronfel. So for the solution name it's only possible to retrieve it if running the item template from Visual Studio? There's no chance to get the solution name from the |
Background
This is about better item templates context support in
dotnet new
(evaluate MSBuild properties and namespace). Allows to get details of the project item template should be added to.Details are:
Limited to C# projects only.
Problem Summary
Item templates are limited now due to following reason:
No project context information when creating item templates
Though some item templates exist at the moment, they are barely usable as they are missing the context of the project they are being adding to. As the result, the simplest item template for class still cannot be implement as it is not possible to evaluate project namespace.
Design thoughts
Justification
Customer impact:
Requirements
ProjectCapabilities
.dotnet new
CLI to handle item templatesdotnet new list
Prerequisite to...
Also fixes
Subtasks
ProjectCapability
itemThe text was updated successfully, but these errors were encountered: