From 0314ef13896bef9ade8d7614ed70d788ccbc1556 Mon Sep 17 00:00:00 2001 From: Pavel 'LEdoian' Turinsky Date: Sun, 6 Mar 2022 23:59:14 +0100 Subject: [PATCH] Add notes from setting up toolchain MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit I somehow managed to get it working in a VM, so here are some notes… --- TOOLCHAIN_NOTES | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 TOOLCHAIN_NOTES diff --git a/TOOLCHAIN_NOTES b/TOOLCHAIN_NOTES new file mode 100644 index 0000000..65c3e1b --- /dev/null +++ b/TOOLCHAIN_NOTES @@ -0,0 +1,23 @@ +# Here are several notes on how I managed to get xamarin.android working. +# OS: Linux Mint 20.3 Mate x86_64 +# Downloaded Android Studio, Added Mono, installed a lot of random packages, Android SDKs, etc. +# Xamarin.Android taken from the pipeline artifact +# Did some weird hacks with environment (TODO) +# Did awful things to the dotnet instalation: +# SO: https://askubuntu.com/questions/1177970/how-to-develop-for-android-with-xamarin + +for x in /usr/lib/xamarin.android/xbuild/*; do ln -s $x /usr/share/dotnet/sdk/6.0.200/`basename $x`; done +for x in /usr/lib/xamarin.android/xbuild-frameworks/*; do ln -s $x /usr/share/dotnet/packs/`basename $x`; done + +# Found some commands to be semi-working + +dotnet build -p:TargetFrameworkRootPath=/usr/lib/xamarin.android/xbuild-frameworks/ + + +nuget restore # In solution directory +msbuild /t:Build,Install # In project directory +# Launch yourself... + +clean: + git clean -fxd `git rev-parse --show-toplevel` + git submodule foreach --recursive git clean -fxd