How do I dynamically detect what hostname/port to connect to find a WCF service when debugging in VS
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.
精彩评论