我在.net框架4.6.1中有类库项目。我必须将该项目迁移到.net 5中。同时,我也面临着netNamedPipeBinding错误。
Severity Code Description Project File Line Suppression State
Error CS0246 The type or namespace name 'NetNamedPipeBinding' could not be found (are you missing a using directive or an assembly reference?) 下面的nuget软件包已经安装。
System.ServiceModel.Duplex
System.ServiceModel.Http
System.ServiceModel.NetTcp
System.ServiceModel.Primitives有什么办法让它起作用吗?
发布于 2021-01-21 13:30:21
看来它不受支持。
命名管道
WCF为同一物理机器上的进程之间的通信提供了命名管道绑定。ASP.NET Core gRPC的第一个版本不支持命名管道。为命名管道(和Unix域套接字)添加客户端和服务器支持是未来版本的目标之一。
另外,NamedPipeBinding的文档页解析为.NET 4.8部分,.NET 5不存在。
https://learn.microsoft.com/en-us/dotnet/api/system.servicemodel.netnamedpipebinding
HttpBinding文档页是.NET 5的
https://learn.microsoft.com/en-us/dotnet/api/system.servicemodel.nethttpbinding
https://stackoverflow.com/questions/65822862
复制相似问题