How to disable WCF Test Client - VS 2012

EkoostikMartin picture EkoostikMartin · Mar 6, 2013 · Viewed 18.3k times · Source

I have a new WCF Service Application, when I hit F5 to debug, the WCF Test Client always comes up, but I would like to disable it since I am using soapUI to test instead.

I have tried the answer here - https://stackoverflow.com/a/8441887/903056 but this XML node is no longer in the project file for VS 2012. I have tried several other things myself as well, such as changing default start page and trying to force debug to start a browser session instead.

Answer

Liran Ben Yehuda picture Liran Ben Yehuda · Apr 24, 2013

This is realy frustrated but you can try one of the followings to disable the WCF test client:

1.Open the requested project properties and select the Web tab. Select the Current Page radio button (I believe that the Specific Page button is selected), Save the project and run(F5).

2.You can modified the prject XML (.csproj) file and add

<EnableWcfTestClientForSVCDefaultValue>False</EnableWcfTestClientForSVCDefaultValue>

attribute to <WebProjectProperties> node. That should be done by the followings:

2.1 Unload the requested project (right click -> Unload Project).

2.2 Edit <ProjectName>.csproj (right click again on the project)

2.3 Look for WebProjectProperties node and add <EnableWcfTestClientForSVCDefaultValue>False</EnableWcfTestClientForSVCDefaultValue> to it.

2.4 Reload the poject.

I hope you will find that unswer helpfull..