简体   繁体   中英

Can I have a Xamarin.Forms project with PCLs and shared code?

UPDATE: I realized where my confusion came from.

You can start a project with PCLs, then turn it into a shared project, but you cannot start with a shared project then add PCLs.


I understand the differences between PCL and Shared in Xamarin, as well as Xamarin native (iOS, Android) vs Shared. There is a great comparison on it here.

What I am not sure of, is if I can use PCLs and shared code in the same project. For example, if I want to work on a project which require a plugin, such as plugin.media, how can I also use blob storage, with the Azure.Storage namespace, if that requires shared code?

Yes. You can reference both a PCL and a Shared Project (shproj) from the same project.

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