DEV Community

Daniel Colgan
Daniel Colgan

Posted on

dotnet new project - assigning a port number

in the documentation for dotnet new... there is a setting for KestrelHttpsPort and kestrelHttpPort. When attempting to use those attributes in the cli it says:
_"--KestrelHttpsPort' is not a valid option" _
Am I reading something wrong in the documentation or am I calling it incorrectly?

The call is being made from Powershell:

"dotnet new $ProjectType -n $ProjectName --framework $Framework -lang $ProjectLanguage --kestrelHttpPort $KestrelHttpPort --KestrelHttpsPort $KestrelHttpsPort"
Enter fullscreen mode Exit fullscreen mode

Is it possible that this used to be an argument but with .net 9 it is no longer?

Top comments (0)

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay