开发者

How do I dynamically detect what hostname/port to connect to find a WCF service when debugging in VS

开发者 https://www.devze.com 2023-02-22 14:09 出处:网络
WCF service is hosted in a website in the same solution as my WPF client. Given that the development webserver often switches ports, I was wonde开发者_运维问答ring if there was an easy way to detect

WCF service is hosted in a website in the same solution as my WPF client.

Given that the development webserver often switches ports, I was wonde开发者_运维问答ring if there was an easy way to detect this so I don't have to keep hardcoding / updating my config?


The web project properties page contains option to specify an exact port on which the development server would run. Check the 'Web' property page.

0

精彩评论

暂无评论...
验证码 换一张
取 消