I'm currently working on a project and I need to implement few features to be done, however, it's not possible and I need to be done as soon as possible.
I have a solution PCL (.NET 4.5, Profile=111) and for some reasons (that I don't understand from hours now), I can't install the following packages :
.NET 4.5, Profile=111
)Do you have any idea or any work around to make it work? I need stripe for payments and cloudinary for images hosting. It's already what the company is using so.. I have to adapt.
I was thinking about don't use any sdk and just do everything by myself, is it allowed/possible?
Thank for any help !
Answers
You can use Shared Project for PCL part. This way you only have to install packages to Android or to iOS project. And Profile will not be problem completely
Another approach - which I think you're alluding to in your reply "Using Interfaces" is to (wait for it) use Interfaces.
This does seem a bit heavyweight though - you'll have to create the (admittedly probably pretty lightweight) Interface implementation classes for each package and platform.
@Emixam23 Sry for not answering
Why didn't you just get Shared project? Works great for me.
Shared project has no nuget packages dependecies itself. It uses all packages from your Android or iOS project.
use interfaces and IoC than is great option, but you should try Shared Project
It works with Xamarin
I have a Xamarin solution (.NET Core 1.6, Android 7.1, iOS, UWP Build 16299)
Coudinary.Core
into each projectThere is an example of how you can use it:
Hope it helps !