如何更改本地 Service Fabric 默认启动 URL? [英] How to change local Service Fabric default launch url?
问题描述
我使用 Visual Studio 2017 在服务结构本地集群中创建了一个无状态服务.它带有一个预定义的随机端口 8462.
我将 ServiceManifest.xml 中的端口更改为另一个,但每次启动项目时它都会转到旧端口,我可以在输出中看到Launching the browser with URL
I created a stateless service in service fabric local cluster with Visual studio 2017. It came with a predefined random port 8462.
I changed the port in the ServiceManifest.xml to another, but every time I launch the project it goes to the old port, I can see in the Output "Launching the browser with URL http://localhost:8462/ to open the application." and I have to change it manually.
Ho I change the default launch url? in the project properties there is no option.
Thanks
Right click the Service Fabric Application project (so, not the project of a service) and select "properties". You can modify it there:
这篇关于如何更改本地 Service Fabric 默认启动 URL?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!