16

Possible Duplicate:
How to Prevent Visual Studio launch WcfSvcHost.exe in Debuggin?

When I debug a solution with a WCF service library, VS 2008 starts the WCF Service host by default. Is there a way to turn this off so that I can use my own managed Windows service host?

Community
  • 1
  • 1
Dusty
  • 2,159
  • 3
  • 23
  • 26
  • Seems to be a duplication of http://stackoverflow.com/questions/283145/how-to-prevent-visual-studio-launch-wcfsvchost-exe-in-debuggin – ajukraine Apr 12 '12 at 16:44
  • 1
    It's not a duplicate. Other question talks about debugging other projects in same solution which has a different best solution. – MonkeyPushButton Apr 29 '19 at 15:29

2 Answers2

40

Just unchek checkbox "Start WCF Service Host when debugging another project in the same solution" in WCF options in project settings

Polaris
  • 3,643
  • 10
  • 50
  • 61
  • In my opinion it's much more better solution. Because we still have WCF Library project type... If you want simple Library project then choose it when creating one! – ajukraine Apr 12 '12 at 16:41
  • 4
    Where is the Project Settings and WCF Options in VS 2010? – Imran Rizvi May 21 '13 at 11:08
  • 2
    In the project that reference your IService Class. Right Click on your project -> Properties -> WCF Options -> Check/Uncheck "Start WCF Service Host when debugging another project in the same solution" – Steven Muhr Sep 26 '13 at 08:12
12

Follow these steps to disable the Test WCF Client:

  1. Edit the .csproj file, and find the ProjectTypeGuids element.
  2. Remove {3D9AD99F-2412-4246-B90B-4EAA41C64699};
  3. Save the .csproj file and reload the project in Visual Studio.
Greg Sansom
  • 20,442
  • 6
  • 58
  • 76
  • 3
    Unchecking the "Start WCF Service Host when debugging another project in the same solution" checkbox is the right answer – Milan Raval Feb 04 '14 at 23:47
  • 1
    For me this helped, because I have already done "Start WCF Service Host when debugging" and it was still coming up - and in my solution I have 3 projects - find in file helped. – hB0 Aug 03 '15 at 13:38