I need to create a Xamarin plugin (something that could be released on Nuget) containing UI and Business Logic related to a private business login process.
我需要创建一个Xamarin插件(可以在Nuget上发布的内容),其中包含与私有企业登录过程相关的UI和业务逻辑。
Now my question is: What is the best way to create that ?
现在我的问题是:创建它的最佳方法是什么?
I was thinking to create two separate project in Xamarin that would embed everything, an iOS class library and an Android class library. Is it possibile to do so ? And, more important for me, is it possibile to include UI in this type of project and design it in XAML ?
我想在Xamarin中创建两个独立的项目,它将嵌入所有东西,一个iOS类库和一个Android类库。这样做有可能吗?而且,对我来说更重要的是,在这种类型的项目中包含UI并在XAML中设计它是否可能?
The ui should be quite simple, a login form with two text entry and a button but I'd like to use a visual editor to do that.
ui应该非常简单,一个带有两个文本输入和一个按钮的登录表单,但是我想用一个可视化编辑器来做到这一点。
The real plus, obviously, of the plugin is the business login underneath that will use a custom authentication type.
显然,插件的真正优点是下面的业务登录将使用自定义身份验证类型。
1 个解决方案
#1
0
You can create Multiplatform Library project where you can implement platform specific implementation of your Library business logics.
您可以创建Multiplatform Library项目,您可以在其中实现库业务逻辑的特定于平台的实现。
There is a nice tutorial on Microsoft website: https://docs.microsoft.com/en-us/xamarin/cross-platform/app-fundamentals/nuget-multiplatform-libraries/single-codebase
微软网站上有一个很好的教程:https://docs.microsoft.com/en-us/xamarin/cross-platform/app-fundamentals/nuget-multiplatform-libraries/single-codebase
To learn more about creating the Nuget package you should go through: https://docs.microsoft.com/en-us/nuget/create-packages/overview-and-workflow
要了解有关创建Nuget包的更多信息,请访问:https://docs.microsoft.com/en-us/nuget/create-packages/overview-and-workflow
#1
0
You can create Multiplatform Library project where you can implement platform specific implementation of your Library business logics.
您可以创建Multiplatform Library项目,您可以在其中实现库业务逻辑的特定于平台的实现。
There is a nice tutorial on Microsoft website: https://docs.microsoft.com/en-us/xamarin/cross-platform/app-fundamentals/nuget-multiplatform-libraries/single-codebase
微软网站上有一个很好的教程:https://docs.microsoft.com/en-us/xamarin/cross-platform/app-fundamentals/nuget-multiplatform-libraries/single-codebase
To learn more about creating the Nuget package you should go through: https://docs.microsoft.com/en-us/nuget/create-packages/overview-and-workflow
要了解有关创建Nuget包的更多信息,请访问:https://docs.microsoft.com/en-us/nuget/create-packages/overview-and-workflow