Skip to content
This repository was archived by the owner on Jan 13, 2025. It is now read-only.

Conversation

@jonathanpeppers
Copy link
Member

Context: dotnet/android-libraries#247
Context: https://github.com/xamarin/Xamarin.Legacy.Sdk

I'm testing out if we can multi-target the AndroidX libraries for MonoAndroid90;net6.0-android.

Unfortunately the build fails because:

  1. The UseDotNet@2 yaml task can't install .NET
    6.0.100-alpha.1.21064.27. We have to use the dotnet-install
    script to install it ourselves.

  2. dotnet tool commands won't work, if there is a global.json file
    targeting 6.0.100-alpha.1.21064.27.

I think for now, we should make it so callers can set dotnet: '' and
skip many of these steps. Callers can also leave the tools: []
parameter blank.

If a build needs to install .NET 6 and other .NET global tools, I
think it will be able to be done in preBuildSteps after these
changes.

Context: dotnet/android-libraries#247
Context: https://github.com/xamarin/Xamarin.Legacy.Sdk

I'm testing out if we can multi-target the AndroidX libraries for `MonoAndroid90;net6.0-android`.

Unfortunately the build fails because:

1. The `UseDotNet@2` yaml task can't install .NET
   6.0.100-alpha.1.21064.27. We have to use the `dotnet-install`
   script to install it ourselves.

2. `dotnet tool` commands won't work, if there is a `global.json` file
   targeting `6.0.100-alpha.1.21064.27`.

I think for now, we should make it so callers can set `dotnet: ''` and
skip many of these steps. Callers can also leave the `tools: []`
parameter blank.

If a build needs to install .NET 6 and other .NET global tools, I
think it will be able to be done in `preBuildSteps` after these
changes.
@jonathanpeppers jonathanpeppers merged commit abda726 into xamarin:master Jan 25, 2021
@jonathanpeppers jonathanpeppers deleted the azdo-dotnet branch January 25, 2021 22:53
@jonathanpeppers
Copy link
Member Author

I'm just going to merge this and try it out.

It's possible I will need to change more here...

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants