NetCore使用WCF简单方式

NetCore使用WCF简单方式

服务端代码结构自动生成

dotnet new install CoreWCF.Templates 
dotnet new corewcf --name MyServicek

客户端代码结构自动生成

dotnet tool install --global dotnet-svcutil
dotnet-svcutil --roll-forward LatestMajor https://localhost:7116/Service.svc?wsdl

客户端需要安装System.ServiceModel.Http包支持