0

In the new .NET5, Support for WCF has now been removed.

I am wondering if it is possible to simply take all relevant source references from Microsofts source reference, and just compile it again in my C# project.

AKA, everything in the namespace of System.ServiceModel. Or is there other stuff that I would be missing too. Is there any nuget packages that already do this for me? I would be surprised if nobody else has attempted doing something like this.

CoreWCF unfortunately for my project will not work, as my project uses NetNamedPipeBinding, which is not supported in it.

I have looked also into migrating code into gRPC, but it seems like it might be quite a timely task to convert all my code into using it.

Ilan Keshet
  • 176
  • 1
  • 8
  • You are not the first and won't be the last. Cannot your code stay on .NET Framework? Migrating to .NET Core should be a phased process and you cannot hurry. – Lex Li Dec 10 '21 at 02:10
  • I'm not migrating to .NET Core. -- I'm migrating to .NET 5. And only need it on windows machines – Ilan Keshet Dec 10 '21 at 18:54
  • .NET 5 = .NET Core 5 if you don't know that. – Lex Li Dec 10 '21 at 20:37

2 Answers2

1

CoreWCF will be getting NetNamedPipe support at some point next year. There's a couple of tasks ahead of it in the queue, but it's a high priority item to complete in 2022. Source: Self, as I'm one of the owners of the CoreWCF project.

MattC
  • 373
  • 1
  • 6
0

The original implementation of Windows Communication Foundation (WCF) was only supported on Windows. However, there is a client port available from the .NET Foundation. It is entirely open source, cross platform, and supported by Microsoft. The core NuGet packages are listed below:

The community maintains the server components that complement the aforementioned client libraries. The GitHub repository can be found at CoreWCF. The server components are not officially supported by Microsoft. For an alternative to WCF, consider gRPC.
Source:Windows Communication Foundation


Lan Huang
  • 613
  • 2
  • 5