无法加载文件或程序集 System.ServiceModel

Could not load file or assembly System.ServiceModel

我最近开始将 ASP.NET 网络应用程序转换为 ASP.NET 核心。 我之前使用 System.ServiceModel 作为 WS2007HttpBindingSystem.IdentityModel,但是在 ASP.NET Core 中我得到以下错误:

Could not load file or assembly System.ServiceModel

System.ServiceModel 是否已弃用 ASP.NET Core,或者是否有替代解决方法?

如果您只是想引用 WS2007HttpBinding

,您可以从 NuGet 特定包下载它