Hi Jonathan !
Since the script seems to mess up nuget, I tried to run it in the pre-build step instead of post-clone:
# App Center custom build scripts: https://aka.ms/docs/build/custom/scripts
export DOTNET_SKIP_FIRST_TIME_EXPERIENCE=true
dotnet tool install --global boots
# Workaround instead of restarting shell
# see: https://github.com/dotnet/cli/issues/9114#issuecomment-494226139
export PATH="$PATH:~/.dotnet/tools"
export DOTNET_ROOT="$(dirname "$(readlink "$(command -v dotnet)")")"
# https://www.mono-project.com/download/stable/#download-mac
boots https://download.mono-project.com/archive/6.12.0/macos-10-universal/MonoFramework-MDK-6.12.0.145.macos10.xamarin.universal.pkg
# https://github.com/xamarin/xamarin-android
boots https://aka.ms/xamarin-android-commercial-d16-8-macos
But doing that I ended up with the following error:
##[section]Starting: Pre Build Script
==============================================================================
Task : Shell script
Description : Run a shell script using Bash
Version : 2.165.2
Author : Microsoft Corporation
Help : https://docs.microsoft.com/azure/devops/pipelines/tasks/utility/shell-script
==============================================================================
[command]/bin/bash /Users/runner/work/1/s/Symbiot.OtioCare.Mobile/Symbiot.OtioCare.Mobile.Android/appcenter-pre-build.sh
Welcome to .NET Core 3.1!
---------------------
SDK Version: 3.1.401
Telemetry
---------
The .NET Core tools collect usage data in order to help us improve your experience. The data is anonymous. It is collected by Microsoft and shared with the community. You can opt-out of telemetry by setting the DOTNET_CLI_TELEMETRY_OPTOUT environment variable to '1' or 'true' using your favorite shell.
Read more about .NET Core CLI Tools telemetry: https://aka.ms/dotnet-cli-telemetry
----------------
Explore documentation: https://aka.ms/dotnet-docs
Report issues and find source on GitHub: https://github.com/dotnet/core
Find out what's new: https://aka.ms/dotnet-whats-new
Learn about the installed HTTPS developer cert: https://aka.ms/aspnet-core-https
Use 'dotnet --help' to see available commands or visit: https://aka.ms/dotnet-cli-docs
Write your first app: https://aka.ms/first-net-core-app
--------------------------------------------------------------------------------------
You can invoke the tool using the following command: boots
Tool 'boots' (version '1.0.4.624') was successfully installed.
A fatal error occurred. The required library libhostfxr.dylib could not be found.
If this is a self-contained application, that library should exist in [/Users/runner/.dotnet/tools/.store/boots/1.0.4.624/boots/1.0.4.624/tools/netcoreapp3.1/any/].
If this is a framework-dependent application, install the runtime in the global location [/usr/local/share/dotnet] or use the DOTNET_ROOT environment variable to specify the runtime location or register the runtime location in [/etc/dotnet/install_location].
The .NET Core runtime can be found at:
- https://aka.ms/dotnet-core-applaunch?missing_runtime=true&arch=x64&rid=osx.10.15-x64
A fatal error occurred. The required library libhostfxr.dylib could not be found.
If this is a self-contained application, that library should exist in [/Users/runner/.dotnet/tools/.store/boots/1.0.4.624/boots/1.0.4.624/tools/netcoreapp3.1/any/].
If this is a framework-dependent application, install the runtime in the global location [/usr/local/share/dotnet] or use the DOTNET_ROOT environment variable to specify the runtime location or register the runtime location in [/etc/dotnet/install_location].
Hi Jonathan !
Since the script seems to mess up nuget, I tried to run it in the pre-build step instead of post-clone:
But doing that I ended up with the following error: