[英]System.ServiceModel References
我正在嘗試使用System.ServiceModel
using System.ServiceModel;
using System.ServiceModel.Channels;
using System.ServiceModel.PeerResolvers;
在C#winform桌面應用程序中,但我在Visual Studio 2015中找不到它將它添加到項目References中,這必須是Framework中的System.SeviceModel我猜,不確定
任何建議都會有用
通過右鍵單擊項目,轉到屬性,然后是應用程序,然后是目標框架,將項目目標框架更新到.NET 4.5。 將目標框架更改為.NET Framework 4.5。
在我的VS2015實例中,當我轉到Add References-> Assemblies時,System.ServiceModel就在那里,它看起來在C:\\ Program Files(x86)\\ Reference Assemblies \\ Microsoft \\ Framework.NETFramework \\ v4.5文件夾中。
如果System.ServiceModel不在列表中,您可以嘗試通過右鍵單擊 - >管理NuGet包 - >瀏覽獲取它,並搜索ServiceModel,從Microsoft獲取。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.