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 (1)

Collapse
 
insight_it_891bf8cd689700 profile image
Insight IT

Nice and informative content,
Thanks for sharing with us,
We are providing Best Dot NET Training in Hyderabad,

DOT NET Training in Hyderabad
DOT NET Online Training in Hyderabad
DOT NET Online Course in Hyderabad