dotnet / dotnet/maui

Update templates for platform selection

Open
#7,864 2 comments 0 reactions 0 assignees View on GitHub
area-templates proposal/open t/enhancement ☀️
Dominant language
C#
Stars
23.3k
Forks
2k
Avg merge
1d 15h
Merged PRs (30d)
290

Description

### Description

[templating/Reference-for-template.json.md at main · dotnet/templating (github.com)](https://github.com/dotnet/templating/blob/main/docs/Reference-for-template.json.md#multichoice-symbols-specifics)

This will enable you to do something like this:

```console
> dotnet new maui -n JustDesktop --Platforms macos windows
```

Including the options will not impact existing template usage from CLI or VS in older versions. When the capability rolls out in .NET 7 and Visual Studio it will light up.

### (Public) API Changes

none

### Usage Scenarios

```console
> dotnet new maui -n JustDesktop --Platforms macos windows
```

For more examples see the docs

### Backward Compatibility

yes, backwards compatible

### Difficulty

Low

Contributor guide

Open the contributing guide

Research direction

Start with docs/Reference-for-template.json.md at the multichoice-symbols section and the `dotnet new maui -n JustDesktop --Platforms macos windows` example. Identify the MAUI template definitions that need platform-selection options, then verify that the command supports the example while existing CLI and Visual Studio usage remains compatible.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp
Domain
cli
Issue type
Feature
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.