dotnet / dotnet/aspnetcore

Add the kestrelHttpPort port ASP.NET template flag to more templates

Open
#51,609 0 comments 0 reactions 0 assignees View on GitHub
area-networking feature-templates
Dominant language
C#
Stars
38.4k
Forks
10.9k
Avg merge
2d 10h
Merged PRs (30d)
281

Description

### Is there an existing issue for this?

- [X] I have searched the existing issues

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

_No response_

### Describe the solution you'd like

Some templates (Blazor) support this flag:

```
--kestrelHttpPort

Port number to use for the HTTP endpoint in launchSettings.json.

--kestrelHttpsPort

Port number to use for the HTTPS endpoint in launchSettings.json. This option is not applicable when the parameter no-https is used (but no-https is ignored when an individual or organizational authentication setting is chosen for --auth).
```

I wish that the main ASP.NET Core templates supported this flag so that when I create projects from the command line, I get predictable port numbers that the app listens to.

Right now, its random, and that is so annoying.

### Additional context

_No response_

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.