[ci] Restore custom use-dot-net task #5297
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Context: #5293
Context: https://github.com/xamarin/xamarin-android/blob/f5680e783fe45d4f536f8199372ff504ebfdc393/build-tools/automation/yaml-templates/use-dot-net.yaml
PR #5293 introduced an incompatibility with xabuild, and it appears to
be causing issues with other stable builds. The UseDotNet task has
a caching feature to improve "installation" times for certain versions,
however this can cause issues for our non-hosted build machines.
We should continue to use the custom
use-dot-net
task that JonathanPeppers added for us during earlier .NET 5 preview work. This template
was removed in PR #5191 but in hindsight it should not have been.