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

前端 未结 3 1715
你的背包
你的背包 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.

    0 讨论(0)
  • 2021-01-02 10:27

    The link in MLF's answer does contain good information, and is definitely worth a read. However, it took me a while to find the specific answer I was looking for, which is about halfway down the page:

    If you set the focus on the .svc or .xamlx file in Solution Explorer, WCF Test Client will start when pressing F5.

    This still holds true in Visual Studio 2015.

    0 讨论(0)
  • 2021-01-02 10:30

    Have look at this article from the WCF Tools Team Blog

    Tips for Launching WCF Test Client

    0 讨论(0)
提交回复
热议问题