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)

Heroku

This site is built on Heroku

Join the ranks of developers at Salesforce, Airbase, DEV, and more who deploy their mission critical applications on Heroku. Sign up today and launch your first app!

Get Started