Home > Blockchain >  How to add WCF Service to .NET Core project in Visual Studio 2019?
How to add WCF Service to .NET Core project in Visual Studio 2019?

Time:09-30

I am unable to add a connected service reference to a WCF endpoint in VS 2019. I used to be able to do it in VS2017 with an extension. Now I can't find the extension anywhere, and when I try to add a connected service, I get lots of options but nothing for a WCF service.

Just to clarify, I am not trying to develop a WCF service, just trying to create a service reference to act as a client to a remote WCF service.

There is an article on how to use such a tool, enter image description here

CodePudding user response:

.Net Core is still supporting client-side. You can use hosted service in it and add the ip:port/wcfinterface from the connected services.

You can try it by following enter image description here

I tried re-targeting this class lib back to NetStandard1.6, and all is still working. My original class lib was very old, and had some old stuff like dnxcore50 in the .csproj file, so maybe something there was screwing it up.

Thanks all for the suggestions.

  • Related