I want to Know That Can we use Shared Project Library with PCL Project In order to get the benefit of compiler directive. so that when ever we need platform specific work we can use the shared else use PCL??
You can have both a shared project and a PCL in your solution. but in terms of compiler directives, can't you instead just use Device.OS?
i mean i want to download a file like pdf and image but it is difficult through PCL project because we can not use WebClient in PCL for that we have to do some plateform spacific code .. but through Shared we can do that and can also get the location of the file downloaded .. so how could i achieve that on button click event through shared ????
Sounds like you should take a look at using DependencyService:
@DirkWilhelm ya i know about dependency Service but i want a sample for downloading files through PCL and also how to get the location of the file ?
@AlessandroCaliaro Sir please suggest
Xamarin Inc., as a wholly-owned Microsoft subsidiary acting as a separate legal entity, adheres to the Microsoft Privacy Statement: Privacy & cookies