开发者

Start Web Service in Solution without Web Reference

开发者 https://www.devze.com 2023-03-27 12:43 出处:网络
When I work with a 开发者_如何学Goweb service in Visual Studio and I\'m using a web reference, the WCF web service project is automatically started as soon as I start the client application. Interesti

When I work with a 开发者_如何学Goweb service in Visual Studio and I'm using a web reference, the WCF web service project is automatically started as soon as I start the client application. Interestingly, this does not change when I remove the web reference.

Is there a setting in Visual Studio to get this behaviour, without actually referencing the service? (I'm working with a WebChannelFactory.)


In the solution's properties, under Common Properties, Startup Project, you can choose Multiple startup projects and select Start as the action for both the service and the consumer.

0

精彩评论

暂无评论...
验证码 换一张
取 消