I've created a core PCL library which can be used in both the xamarin.android,xamarin.iOS projects. I've been creating a xamarin package by using that PCL ,which I am going to upload into the xamarin component store as a library component.How should I add that PCL library for my xamarin.android/iOS sample projects to compile.Either as a DLL Reference or as a whole PCL project,so xamarin.component.exe can make the proper reference in xamarin package?
1 Answers
How should I add that PCL library for my xamarin.android/iOS sample projects to compile.Either as a DLL Reference or as a whole PCL project,so xamarin.component.exe can make the proper reference in xamarin package?
Please refer to steps 5,6,7,8,9,10 of Xamarin Component Submission:
5: Within this folder create the "lib” and "samples” folders to complete your folder structure.
6: Within the "lib” folder create new folders for each platform you support.
7: Do the same for the samples folder.
8: Copy your components DLL’s into the relevant platform folder within the "lib” folder - Copy the xml files too if you want to include your documentation
9: Create a sample project for each supported platform in the relevant folder in "samples”.
10: Reference the DLL’s from the relevant folder in libs and then build your sample.
So, it is clear that you need to reference the dlls in relevant "lib" folder and build it