我想使用.NET Standard2.0中的,但无法使用System.ServiceModel下的ServiceHost。是否有在 .NET standard2 中使用 ServiceHost 的解决方法?
非常感谢任何意见。
谢谢。
您需要添加提供这些模型的NuGet包。默认情况下,它们并不像 Framework4.X 中那样包含在
netstandard2.0
System.ServiceModel.Primitives
系统.ServiceProcess.ServiceController