xamarin.forms - Unable to Add System.ServiceModel Nuget Package in Xamarin Form PCL Project -
i trying follow official xamarin tutorial make use of wcf services xamarin form pcl project (url /guides/cross-platform/application_fundamentals/web_services/walkthrough_working_with_wcf/ on xamarin website)
however, @ time of referencing system.servicemodel nuget package, following error , package not installed:
could not install package 'system.servicemodel 1.0.0'. trying install package project targets '.netportable,version=v4.5,profile=profile7', package not contain assembly references or content files compatible framework. more information, contact package author.
i tried profile 78 without luck (i removed windows phone 8.1 explained here since there no wcf support).
i tried different profiles pcl project explained here, without success.
also, tried using package management console , got similar error:
pm> install-package -verbose cmdlet install-package @ command pipeline position 1 supply values following parameters: id: system.servicemodel ... ok attempting gather dependency information package 'system.servicemodel.1.0.0' respect project 'mobile\mobilecashregister', targeting '.netportable,version=v4.5,profile=profile7' attempting resolve dependencies package 'system.servicemodel.1.0.0' dependencybehavior 'lowest' resolving actions install package 'system.servicemodel.1.0.0' resolved actions install package 'system.servicemodel.1.0.0' install failed. rolling back... package 'system.servicemodel.1.0.0' not exist in project 'mobilecashregister' package 'system.servicemodel.1.0.0' not exist in folder 'c:\dev\devcuddlupsolution\packages' install-package : not install package 'system.servicemodel 1.0.0'. trying install package project targets '.netportable,version=v4.5,profile=profile7', package not contain assembly references or content files compatible framework. more information, contact package author. @ line:1 char:1 + install-package -verbose + ~~~~~~~~~~~~~~~~~~~~~~~~ + categoryinfo : notspecified: (:) [install-package], exception + fullyqualifiederrorid : nugetcmdletunhandledexception,nuget.packagemanagement.powershellcmdlets.installpackagecommand
how can know profile needs selected system.servicemodel nuget package installed successfully?
please note using visual studio 2015 professional , latest available xamarin.
system.servicemodel 1.0.0 not contain assemblies in lib folders. seems contain nuget.exe not able use it.
it not official microsoft nuget package.
Comments
Post a Comment