Asp.net core mvc 类型';SoapHttpClientProtocol';定义为。。。必须添加对程序集';System.Web.Services,版本=2.0.0.0,';。在mvc core1.1中

Asp.net core mvc 类型';SoapHttpClientProtocol';定义为。。。必须添加对程序集';System.Web.Services,版本=2.0.0.0,';。在mvc core1.1中,asp.net-core-mvc,visual-studio-2017,system.web,Asp.net Core Mvc,Visual Studio 2017,System.web,您好,我在我的项目中使用了一个web参考。我使用了visual studio 2017和mvc core 1.1 代码是这样的 send.SendGroupSMSAsync("TextBoxSignature.Text", "TextBoxSMSNumber.Text", mobiles, _MSG, false, string.Empty, successCount, ReturnStr); 现在我有了这个错误 The type 'SoapHttpClientProtocol' is d

您好,我在我的项目中使用了一个web参考。我使用了visual studio 2017和mvc core 1.1 代码是这样的

send.SendGroupSMSAsync("TextBoxSignature.Text", "TextBoxSMSNumber.Text", mobiles, _MSG, false, string.Empty,  successCount,  ReturnStr);
现在我有了这个错误

The type 'SoapHttpClientProtocol' is defined in an assembly that is not referenced. You must add a reference to assembly 'System.Web.Services, Version=2.0.0.0,'. in mvc core
在core 1.1中,我如何添加这个