发布:2023/12/7 15:12:21作者:大数据 来源:大数据 浏览次数:840
先看三张图
由图可知,前两种内容差不多,都会生成一个程序集dll,然后其它项目都可引用此dll,不能使用编译命令。而第三种也就是shared它会在三个应用系统里分别存储为备份,并且编译到应用程序中,其它程序不能引用,优点是可以使用编译命令,诸如:#if __android__ endif等
https://developer.xamarin.com/guides/cross-platform/application_fundamentals/code-sharing/
© Copyright 2014 - 2025 柏港建站平台 ejk5.com. 渝ICP备16000791号-4