With .NET8 being released, it automatically installs workloads for .NET8, while we are still on 6.
Future plans are to move to .NET8, but for now lets pin the workloads instead.
As the workloads are installed based on the global.json file, we are adding the global.json file in this PR. Without this file, it would install the latest workloads (which are for .NET8, not .NET6).
As actions/setup-dotnet also reads the global.json file, we are also removing the specific version from the workflow files.
Because of changes to the hosted CI runners for .NET, we also need to install Java manually in order to build Android, see https://github.com/dotnet/maui/issues/18906. Because Xamarin needs Java 11, we are installing Java 11.
Changes
With .NET8 being released, it automatically installs workloads for .NET8, while we are still on 6. Future plans are to move to .NET8, but for now lets pin the workloads instead.
As the workloads are installed based on the global.json file, we are adding the global.json file in this PR. Without this file, it would install the latest workloads (which are for .NET8, not .NET6).
As
actions/setup-dotnet
also reads the global.json file, we are also removing the specific version from the workflow files.Because of changes to the hosted CI runners for .NET, we also need to install Java manually in order to build Android, see https://github.com/dotnet/maui/issues/18906. Because Xamarin needs Java 11, we are installing Java 11.
Checklist