如何在Visual Studio 2017中更改调试端口?我查看了属性页面,但没有找到。
如何在Visual Studio 2017中更改调试端口?我查看了属性页面,但没有找到。
对我来说,我在Visual Studio 2017中采取以下步骤找到了它:
项目文件属性
在VS 2017中,我可以在项目属性中更新它,而不是解决方案属性。
Right-click on your project file, then choose Properties.
On the Web tab find the Project Url section. It should say something like
https://localhost:44348/
Simply modify it to your desired port number and save.
进入.sln文件并编辑其中的端口。
例如,如果当前端口为:50722
那么只需进行替换:50722
替换为:50723
,就可以顺利构建。大约会有5个地方需要替换。