我已经搜索了一段时间,但似乎无法弄清楚如何在Visual Studio 2015中更改我的网站网址。现在,它已经不存在了localhost:9045,但是我需要将其更改为其他端口号和路径,localhost:54865/central。更改端口号非常简单,因为这只是网站项目文件中“调试”选项卡中的设置。但是似乎找不到最终添加额外路径的方法...
localhost:9045
localhost:54865/central
您需要打开.vs/config/applicationhost.config,该文件夹与解决方案文件位于同一文件夹中。
.vs/config/applicationhost.config
在中找到您的网站configuration/configSections/sites并覆盖下的自动分配端口site/bindings/binding/bindingInformation。
configuration/configSections/sites
site/bindings/binding/bindingInformation
确保保存解决方案并重新启动开发服务器,并且最好继续使用所选的端口。
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
点击生成二维码
我来说两句