Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to add a web service reference in Visual Studio 2015 to a console app

Is there a way to easily add a web service reference to a Visual Studio 2015 console application?

like image 694
cymorg Avatar asked Aug 06 '15 09:08

cymorg


1 Answers

If you don't have References -> Add Service Reference, you probably use VS2015 and new Console Applicaiton template, to add WCF service you need to:

  • Right click on References -> Add Connected Service
  • Click 'Find more services...' at the bottom of window.
  • Search for 'Visual Studio WCF Connected Service' and install
  • After VS restart, by clicking on 'Add Connected Service' you will be able to do what you wanted.

edit: Link to documentation of 'Visual Studio WCF Connected Service': https://blogs.msdn.microsoft.com/webdev/2015/12/15/wcf-connected-service-visual-studio-extension-preview-for-asp-net-5-projects/

like image 51
user1214919 Avatar answered Oct 27 '22 23:10

user1214919