VS.NET: Add Service Reference, Discover Service does not work

Trying to add a Service Reference in Visual Studio using the Discover Services in Solution and the Wizard can’t find the Service in the Solution? Logo Microsoft Visual Studio

In order to use the "Discover services in solution" functionality, the service projects must be based on one of the WCF project templates.
If you want to alter your existing project(s) so that they will be identified as projects containing WCF service(s), do the following:

  • Right-click on the project in the Solution Explorer, and select Unload project
  • Right-click the project again (this time the node will end in (unavailable) ) and choose Edit xxxxx.csproj
  • In the first <PropertyGroup> section, add the following line:
  • Save and close the file
  • Reload the project by right-clicking it again and choose Reload.

  You should then be able to use the "Discover services in solution" functionality.