Skip to content

Conversation

@jonathanpeppers
Copy link
Member

Context: https://github.com/dotnet/runtime/blob/d43e88620fe574045f026a4ebce50f7a8541347a/src/mono/nuget/Microsoft.NET.Workload.Mono.Toolchain.Manifest/WorkloadManifest.json.in

In order to start using packs from the microsoft-net-runtime-android
workload, we need to:

  1. Add Microsoft.NET.Workload.Mono.ToolChain.Manifest-6.0.100 to
    package-download.proj.

  2. Copy WorkloadManifest.* files from:

Microsoft.NET.Workload.Mono.ToolChain.Manifest-6.0.100/data/

To:

~/android-toolchain/dotnet/sdk-manifests/6.0.100/Microsoft.NET.Workload.Mono.ToolChain/

So we get the latest WorkloadManifest.json based on the version
defined in $(MicrosoftNETCoreAppRefPackageVersion).

  1. xaprepare should run:
~/android-toolchain/dotnet/dotnet workload install microsoft-net-runtime-android --skip-manifest-update --verbosity diag

So the packs are installed for local development and CI.

  1. Our workload should "extend" microsoft-net-runtime-android. This
    would make sure these packs are installed on user's machines.

Context: https://github.com/dotnet/runtime/blob/d43e88620fe574045f026a4ebce50f7a8541347a/src/mono/nuget/Microsoft.NET.Workload.Mono.Toolchain.Manifest/WorkloadManifest.json.in

In order to start using packs from the `microsoft-net-runtime-android`
workload, we need to:

1. Add `Microsoft.NET.Workload.Mono.ToolChain.Manifest-6.0.100` to
   `package-download.proj`.

2. Copy `WorkloadManifest.*` files from:

    Microsoft.NET.Workload.Mono.ToolChain.Manifest-6.0.100/data/

To:

    ~/android-toolchain/dotnet/sdk-manifests/6.0.100/Microsoft.NET.Workload.Mono.ToolChain/

So we get the latest `WorkloadManifest.json` based on the version
defined in `$(MicrosoftNETCoreAppRefPackageVersion)`.

3. `xaprepare` should run:

    ~/android-toolchain/dotnet/dotnet workload install microsoft-net-runtime-android --skip-manifest-update --verbosity diag

So the packs are installed for local development and CI.

4. Our workload should "extend" `microsoft-net-runtime-android`. This
   would make sure these packs are installed on user's machines.
@jonathanpeppers
Copy link
Member Author

I think the test failures look OK, designer tests are known to be broken right now as well as RunWithInterpreterEnabled fails randomly.

Going to merge.

@jonathanpeppers jonathanpeppers merged commit 0150bbb into dotnet:main Jun 1, 2021
@jonathanpeppers jonathanpeppers deleted the microsoft-net-runtime-android branch June 1, 2021 14:38
@github-actions github-actions bot locked and limited conversation to collaborators Jan 25, 2024
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.

3 participants