How to set that the WCF Test Client will run every time the service is running

前端 未结 3 1727
你的背包
你的背包 2021-01-02 10:01

I have a WCF project and when I run it sometimes it lunch the WCF Test and sometimes it does not.

How can I set the WCF Test Client to always be displayed ?

3条回答
  •  温柔的废话
    2021-01-02 10:15

    It's worth noticing the comment, generated by the project template at one's svc.cs-file:

    // NOTE: In order to launch WCF Test Client for testing this service, please select SampleService.svc or SampleService.svc.cs at the Solution Explorer and start debugging.
    public class SampleService : ISampleService
    {
        ...
    

    One can also use that hint, to make WCF Test Client start each and every time (regardless of the currently focused file) by specifiying the the svc-file as start action.

    Go to your "project properties", "Web", and set "Specific Page" to your svc-file.

提交回复
热议问题