Changing project port number in Visual Studio 2013

前端 未结 8 1836
别那么骄傲
别那么骄傲 2020-11-27 17:28

How can I change the project port number in Visual Studio 2013 ?
I\'m using ASP.Net and I need to change the port number while debugging in Visual Studio 2013.

8条回答
  •  悲哀的现实
    2020-11-27 18:03

    This has proved to be elusive for me (WebSite Project) until I figured out the following procedure, which combines the solution provided by @Jimmy, with the added step of checking out the solution from Source Control

    Steps: (if using VS2013+ with website project and SourceControl)

    1. Check out the Solution file only (from sourceControl) (this can be tricky. the easiest way to do this is to make a small change in the Solution file properties/settings and then undo if necessary)
    2. Locate the solution file (e.g. solution.sln) in exploer, and open in text editor.
    3. Locate the entry: VWDPort = ...... and change to desired port: (example: "60000" - depends on your IISExpress Settings)
    4. save the change (will prompt to reload solution)

提交回复
热议问题