Visual Studio 2010 debug in a fixed port

前端 未结 2 1135
后悔当初
后悔当初 2020-12-17 16:59

Is it possible to choose a fixed port for the Visual Studio 2010 debug webserver?

相关标签:
2条回答
  • 2020-12-17 17:18

    Should appear as an option in the web project properties, 'Web' tab. By default its set to auto-assign but theres an option to set a specific port.

    0 讨论(0)
  • 2020-12-17 17:23

    If it's similar to VS2008, you can do the following to fix the port number:

    1. Click on the web site project node in Solution Explorer
    2. Hit F4 to bring up the properties tool window
    3. Set "Use dynamic ports" to false
    4. Set "Port number" to whatever you need
    0 讨论(0)
提交回复
热议问题