简体   繁体   中英

System.ServiceModel References

I'm trying to use System.ServiceModel

using System.ServiceModel; 
using System.ServiceModel.Channels;
using System.ServiceModel.PeerResolvers;

in C# winform desktop application, but I can't find it in Visual Studio 2015 to add it to the project References, which must be System.SeviceModel in Framework I guess, not sure

Any advice would be useful

Update your project target framework to .NET 4.5 by Right clicking your project, going to properties, then application, then target framework. Change the target framework to .NET Framework 4.5.

In my VS2015 instance, when I go to Add References-> Assemblies, System.ServiceModel is there, and it looks to be in the C:\\Program Files (x86)\\Reference Assemblies\\Microsoft\\Framework.NETFramework\\v4.5 folder.

If System.ServiceModel is not in the list, you can attempt to get it via the Right Click-> Manage NuGet packages-> Browse, and search for ServiceModel, get the one from Microsoft.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM