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