dotnet / dotnet/templating

Consider adding an option to set a condition, like Framework, when defining a parameter

Open
#9,569 0 comments 0 reactions 0 assignees View on GitHub
triage:transfer-to-sdk
Dominant language
No language data
Stars
1.7k
Forks
399
Avg merge
3d 5h
Merged PRs (30d)
39

Description

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

Consider adding an option to set a condition, like Framework, when defining a parameter.

This will make it possible to manage framework-specific features within a single template package.

### Describe the solution you'd like.

In the **ide.host.json** file:

```json
{
"id": "global-namespace",
"name": {
"text": "Use .NET MAUI 10 Global Namespace feature."
},
"isVisible": true,
"defaultValue": "true",
"condition": "net10.0" // Proposed one - this, in turn will add interactivity in the IDE based on the Framework selection.
}
```

### Additional context

Template parameter definition.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.