Hi,
I'm searching a lot of ways on the web and among the available Nuget packages, to implement ServiceHost and I found quite nothing, neither in the documentation...
Is it possible to obtain a code/package which ServiceHost class is implemented for .Net Core 2.0?
How can we resolve this problem otherwise?
Thank you for your time.
@apdirexyon, WCF has only client support on .NET Core. The ServiceHost is a server feature, which is not supported on .NET Core. The readme of this repo has a bit details of targeted scenarios etc.
and you guys tell me that you won't port ServiceHost to .net core because it is 'legacy'. https://www.erikheemskerk.nl/revisited-benchmark-wcf-webapi-aspnetcore-mvc/
phew
If ServiceHost is not available on .NET Core, how to host a WCF Service in a console app?
If ServiceHost is not available on .NET Core, how to host a WCF Service in a console app?
You can use a 3rd party lib called SoapCore.
Try use CoreWCF
https://github.com/CoreWCF/CoreWCF
Most helpful comment
If ServiceHost is not available on .NET Core, how to host a WCF Service in a console app?