是否可以在一个xamarin应用程序中制作独立的模块

时间:2016-12-18 13:35:57

标签: xamarin xamarin.ios xamarin.android

是否有可能创建几个独立的模块,可以集成到一个xamarin应用程序中,因为我不想要一个只启动已经安装在智能手机上的其他应用程序的应用程序。

目标: 一个开发团队负责app1,一个开发团队负责app2,另一个开发团队负责masterApp。 MasterApp"简单"例如,使用nuget包添加app1和app2。 App1和app2必须独立于masterAPP构建。

有可能做这样的事吗?

我试图做的事情:

solution

1 个答案:

答案 0 :(得分:1)

看一下本教程。使用Xamarin,您可以创建可在iOS / Android / WP上使用的PCL库。

https://developer.xamarin.com/guides/cross-platform/application_fundamentals/pcl/introduction_to_portable_class_libraries/

对于我们的特定情况(黑匣子),您可以创建类库:

1)创建类库项目 enter image description here

2)编写您需要的代码 enter image description here

3)构建为发布配置

enter image description here

4)找到builded .dll

enter image description here

5)将其作为.Net Assemble Reference添加到另一个项目

enter image description here

enter image description here

6)调用您的公共方法。你无法查找实现。

enter image description here

相关问题