In an ASP.NET Core application(using the full .NET framework) we had to consume a WCF service.
Should be easy right? Unfortunately it turned out that be more work than I expected.
- I right clicked on my project and searched for an Add service reference… option. No luck, instead I saw a Connected Services section. Maybe that will do it?
- I right clicked on the Connected Services section and choose Add Connected Service.
- This opened up the Connected Services window but no option was available to connect to an existing WCF service
- Maybe the Find more services… link at the button will help me? This brought me to the Visual Studio Marketplace. And yes… a search for ‘WCF’ showed up a Visual Studio Connected Services plugin that allows to add a WCF Web service reference to .NET Core projects. Exactly what I needed.
- I clicked on Download, closed Visual Studio after which the installer appeared and I could install the extension.
- After the installation has completed, we can open up Visual Studio again, try Add Connected Services again. This time we see a 3th option appear:
- Microsoft WCF Web Service Reference Provider – Preview
- Click on it and you’ll get the same options you had before when using Add service reference…