2016-11-18 60 views
0

我正在Xamarin PCL开发一个跨平台项目我正在使用Visual studio 2015 V4.6测试iOS和Android。我需要包含System.ServiceModel在我的可移植类中使用WCF服务。我不能用Nuget Packets包含它。XAMARIN PCL consumming WCF

Could not install package 'System.ServiceModel.Primitives 4.3.0'. You are trying to install this package into a project that targets '.NETPortable,Version=v4.5,Profile=Profile259', but the package does not contain any assembly references or content files that are compatible with that framework. For more information, contact the package author.   

我想包括直接引用右键集团公司 - >path - > System.ServiceModel [4.0.0.0],然后添加* 我有这样的错误消息

' Severity Code Description Project File Line Suppression State 
Error  Can not resolve reference: /Users/ludovic/Library/Caches/Xamarin/mtbs/builds/DemoHandyLife.iOS/725fe7b4d3cb829a82e1002d425b8f86/bin/iPhoneSimulator/Debug/System.EnterpriseServices.Wrapper.dll DemoHandyLife.iOS C:\Program Files\MSBuild\Xamarin\iOS\Xamarin.iOS.Common.targets 696'  

如果我添加System.ServiceModel [5.0.0.0]我有这些错误消息

Error CS0012 The type 'CookieContainer' is defined in an assembly that is not referenced. You must add a reference to assembly 'System.Net, Version=5.0.5.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e'. 


Error CS0012 The type 'CookieContainer' is defined in an assembly that is not referenced. You must add a reference to assembly 'System.Net, Version=5.0.5.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e'. 

我试图添加system.Net版本= 5.0 .5.0自动但没有发生。 有人可以帮我吗?在此先感谢

告诉我,如果你需要更多的细节。 在此先感谢您的帮助。

回答