What is the difference between PCL & _Shared Project?
What is the difference between PCL & _Shared Project?
When developing cross-platform applications using Xamarin, developers often need to share code across different platforms such as iOS, Android, and UWP. Two primary methods for sharing code are Portable Class Libraries (PCL) and Shared Projects. Here are the key differences between them:
Compilation and Output:
API Availability:
Profiles:
Usage:
XAML Support:
Compilation and Output:
API Availability:
Conditional Compilation:
#if
, #endif
) to include or exclude code based on the target platform. This can make the code harder to maintain and read[1][3][4].Usage:
XAML Support:
middle
Gợi ý câu hỏi phỏng vấn
Chưa có bình luận nào