简体   繁体   中英

Reference a PCL from Shared Project?

I created my Android/iOS Xamarin Forms app as a Shared Project. Now I want to add a PCL to handle all the connections with an API. Is this possible? So what I want is to reference the PCL from the main SP and not from the iOS/Android subprojects.

A Shared Project doesn't have it's own references. It inherits it's environment, including references, from whatever parent project it is contained within at build time. Adding the PCL reference to the parent iOS/Android project should allow the shared project to use the PCL classes.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM