title: I'd like to set a specific port number for visual studio 2017 API project
body: <p>How can I set my API listen to port 1002?<br>
  In my vs2017 API project, I set the Project URL in the Project Properties to <a href="http://localhost:1002/" rel="nofollow noreferrer">http://localhost:1002/</a><br>
  <a href="https://i.stack.imgur.com/EPypp.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/EPypp.png" alt="enter image description here"></a>
  This works when debugging, but when I publish the project to a server, the port is no longer valid.     </p>