Is it possible to choose a fixed port for the Visual Studio 2010 debug webserver?
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试):
问题:
回答1:
If it's similar to VS2008, you can do the following to fix the port number:
- Click on the web site project node in Solution Explorer
- Hit F4 to bring up the properties tool window
- Set "Use dynamic ports" to false
- Set "Port number" to whatever you need
回答2:
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.