Make web command restart Kestrel (kill existing instances) in ASP.NET Core (ASP.NET 5) in Visual Studio -
i use web command run console kestrel web service default project setup in visual studio. when kestrel running, fails start because port occupied, need close running 1 first. possible add parameters or other way make automatically kill running kestrel? e.g. on iisexpress can run as like, no need kill running iisexpress.
it looks me now:
"commands": { "web": "microsoft.aspnet.server.kestrel"
}
the problem default, projects configured run @ port 5000, iisexpress able run multiple services @ same time because registers each in different port. kestrel need specify port in launch command. can in project.json file on commands section, changing web command this
"web": "microsoft.aspnet.kestrel --server.urls http://localhost:5004"
source: http://docs.asp.net/en/latest/fundamentals/servers.html
Comments
Post a Comment