是否可以从 Linux CLI 编译 Xamarin for Android? [英] Is it possible to compile Xamarin for Android from Linux CLI?
问题描述
我们有一个根据每个客户端使用自定义信息编译的 Android 应用程序.目前,我们的应用程序是使用 Ionic 构建的,因此当用户要求下载 APK 时,我们会自动相应地修改其源代码,编译应用程序并从客户端提供下载.所有这些都是在 Linux 服务器中完成的.
We have an Android app that is compiled with custom information according to each client. At the moment, our app is built using Ionic, so when a user asks to download the APK, we automatically modify its source code accordingly, compile the app and provide the download from the client. All of this is done in a Linux server.
我们现在想离开 Ionic 并在我们的新版本中使用 Xamarin.但是我们需要实现与以前相同的过程.那么是否有可能像我们做 ionic build android
一样从 Linux 编译 Xamarin for Android?
We now want to leave Ionic and use Xamarin for our new version. But we need to achieve the same process that we had before.
So is it possible to compile Xamarin for Android from Linux just like we do ionic build android
?
推荐答案
简短的回答:是的,但是....
The short answer : Yes, but....
Linux 不是 Microsoft/Xamarin 的 Xamarin.Android
的分布式预打包版本当前支持的环境,但使用开源代码,您可以构建Xamarin.Android
在 Linux 上,然后在 Xamarin.Android
项目上使用 xabuild
.
Linux not a currently supported environment by the distributed pre-packaged version of Xamarin.Android
from Microsoft/Xamarin, but using the open-sourced code, you can build Xamarin.Android
on Linux and then use xabuild
on your Xamarin.Android
projects.
注意:您在设置、环境、错误等方面都是自己的……(但开源代码是在 Ubuntu 构建服务器上构建的,有关详细信息,请参阅 Github 存储库)
Note: You are on your own in terms of setup, environment, bugs, etc... (but the open source code is being built on an Ubuntu build server, see the Github repo for details)
Github 存储库:https://github.com/xamarin/xamarin-安卓
参考:https://bugzilla.xamarin.com/show_bug.cgi?id=142
新参考:https://github.com/xamarin/xamarin-android/blob/master/Documentation/workflow/UsingYourBuild.md
旧参考:https://github.com/xamarin/xamarin-android#linux-build-notes
这篇关于是否可以从 Linux CLI 编译 Xamarin for Android?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!