问题
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?
回答1:
Follow these steps to disable the Test WCF Client:
- Edit the .csproj file, and find the
ProjectTypeGuidselement. - Remove
{3D9AD99F-2412-4246-B90B-4EAA41C64699}; - Save the .csproj file and reload the project in Visual Studio.
回答2:
Just unchek checkbox "Start WCF Service Host when debugging another project in the same solution" in WCF options in project settings
来源:https://stackoverflow.com/questions/5366229/turn-off-the-wcf-service-host-in-visual-studio