Skip to content

Fail to create C# Azure Functions project due to invalid CLI arguments generated by wizard (undefined port and unsupported namespace) #4991

@v-ruizh

Description

@v-ruizh

OS: Win 11 x64
Build Version: 20260421.1
Regression: Not a Regression

Repro Steps:

  1. F1 -> Select "Azure Functions: Create New Project..." -> Select a folder -> Select C# -> Select runtime .NET 10.0 -> Select "Azure Functions" template.
  2. Continue through the wizard using the default names (only change project name).
  3. Check whether succeeds to create the project or not.

Expect:
Succeed to create the project.

Actual:
Fail to create the project.

  • The generated command includes unsupported --namespace.
  • CLI reports --namespace is not a valid option.
  • The namespace value (e.g., Company.Function) is also interpreted as an invalid option ('Company.Function' is not a valid option), indicating malformed argument construction/parsing.
Image

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions