dotnet / maui

.NET MAUI is the .NET Multi-platform App UI, a framework for building native device applications spanning mobile, tablet, and desktop.
https://dot.net/maui
MIT License
21.83k stars 1.67k forks source link

Blazor Hybrid & Web Solution Template: Template options need updating #23168

Open BethMassi opened 1 week ago

BethMassi commented 1 week ago

Description

The new blazor-hybrid-web template in .NET 9 P5 has some weird command line template options that need to be updated or removed. The template should be a combination of blazor and maui-blazor with a couple that aren't relevant removed. Right now there are a lot of unnecessary ones and inconsistency in naming between the templates. The descriptions are fine.

Usage: dotnet new maui-blazor-web [options] [template options]

Template options:

KEEP:

-ap, --applicationId
-m, --msExtensionsLoggingDebugVersion
-f, --framework <net8.0|net9.0>

REMOVE:

-c, --componentsWebVersion
-co, --componentsWebAssemblyVersion -p:c, --componentsWebAssemblyServerVersion
-F, --FrameworkAspNet
-U, --UserSecretsId
-k, --kestrelHttpPort
-ke, --kestrelHttpsPort -ii, --iisHttpPort
-p:i, --iisHttpsPort -In, --IncludeSampleContent
-A, --AllInteractive

UPDATE:

-E, --ExcludeLaunchSettings --> --exclude-launch-settings
-I, --InteractivityPlatform --> -int, --interactivity <Auto|None|Server|WebAssembly> -Em, --Empty --> -e, --empty
-N, --NoHttps --> --no-https -Us, --UseProgramMain --> --use-program-main

Steps to Reproduce

  1. On the CLI (.NET 9 Preview 5): dotnet new maui-blazor-web --help
  2. Notice the weird template options

(Note Version of the Bug is 9.0.100-preview.5.24307.3 but there is not selection for that)

Link to public reproduction project repository

No response

Version with bug

Unknown/Other

Is this a regression from previous behavior?

No, this is something new

Last version that worked well

Unknown/Other

Affected platforms

iOS, Android, Windows, macOS

Affected platform versions

No response

Did you find any workaround?

No response

Relevant log output

No response

github-actions[bot] commented 1 week ago

Hi I'm an AI powered bot that finds similar issues based off the issue title.

Please view the issues below to see if they solve your problem, and if the issue describes your problem please consider closing this one and thumbs upping the other issue to help us prioritize it. Thank you!

Closed similar issues:

Note: You can give me feedback by thumbs upping or thumbs downing this comment.

RoiChen001 commented 1 week ago

I can repro this issue on 9.0.100-preview.5.24307.3.