9

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 ?

Aliostad
  • 80,612
  • 21
  • 160
  • 208
Erez
  • 6,405
  • 14
  • 70
  • 124

3 Answers3

36

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.

JamesQMurphy
  • 4,214
  • 1
  • 36
  • 41
9

Have look at this article from the WCF Tools Team Blog

Tips for Launching WCF Test Client

MLF
  • 626
  • 4
  • 15
  • 11
    If you set the focus on the .svc or .xamlx file in Solution Explorer, WCF Test Client will start when pressing F5 – SKARVA Bodavula Aug 23 '16 at 15:05
  • 1
    In the meantime the hyperlink got broken. However the contents can be found at archive.org: https://web.archive.org/web/20160305201409/http://blogs.msdn.com/b/wcftoolsteamblog/archive/2010/01/04/tips-for-launching-wcf-test-client.aspx – Jan Köhler Oct 14 '20 at 12:51
0

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.

Jan Köhler
  • 5,817
  • 5
  • 26
  • 35