Skip to content

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

@BethMassi

Description

@BethMassi

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

Metadata

Metadata

Assignees

Labels

area-blazorBlazor Hybrid / Desktop, BlazorWebViewarea-templatesProject templates, Item Templates for Blazor and MAUIp/0Work that we can't release withoutplatform/androidplatform/iosplatform/macosmacOS / Mac Catalystplatform/windowss/triagedIssue has been revieweds/verifiedVerified / Reproducible Issue ready for Engineering Triaget/bugSomething isn't working

Type

Projects

Status

Done

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions