无法在.NET Standard2中使用System.ServiceModel.ServiceHost

问题描述 投票:0回答:1

我想使用.NET Standard2.0中的,但无法使用System.ServiceModel下的ServiceHost。是否有在 .NET standard2 中使用 ServiceHost 的解决方法?

非常感谢任何意见。

谢谢。

.net-standard-2.0
1个回答
0
投票

您需要添加提供这些模型的NuGet包。默认情况下,它们并不像 Framework4.X 中那样包含在

netstandard2.0

System.ServiceModel.Primitives

系统.ServiceProcess.ServiceController

© www.soinside.com 2019 - 2024. All rights reserved.