[build] Default .NET 11 to target net11.0-android37 only#11254
Draft
jonathanpeppers wants to merge 3 commits intomainfrom
Draft
[build] Default .NET 11 to target net11.0-android37 only#11254jonathanpeppers wants to merge 3 commits intomainfrom
net11.0-android37 only#11254jonathanpeppers wants to merge 3 commits intomainfrom
Conversation
Stop building API 36.1 as a separate stable target and make net11.0-android37 the sole default target framework for .NET 11. Changes: - Configuration.props: Set AndroidLatestStableApiLevel to 37, AndroidLatestStablePlatformId to 37.0, framework version to v17.0. Unstable properties now reference stable (since they are the same). - AndroidToolchain.cs: Move isLatestStable from platform-36.1 to platform-37.0, remove isPreview flag - WorkloadManifest.in.json: Update workload packs from 36.1 to 37, add Mono/CoreCLR/NativeAOT runtime pack definitions for 37 - Xamarin.Android.Build.Tasks.targets: Use AndroidLatestStablePlatformId for SDK_PLATFORM_VERSION replacement (needed because ApiLevel=37 but PlatformId=37.0) - BuildTest.cs: Hardcode MinorApiLevelFallbackThrowsXA5207 to use 36.1 since 37.0 == 37 (no meaningful minor version distinction) Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Add acceptable-breakages-v17.0.txt for the v17.0 vs v16.1 API compat check, and update acceptable-breakages-vReference-net11.0.txt with the same breakages for the reference assembly comparison. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
AndroidJavaRuntimeApiLevel was using AndroidLatestStableApiLevel (37), but the Android SDK platform directory is android-37.0, not android-37. Use AndroidLatestStablePlatformId (37.0) so java-runtime.csproj can find android.jar. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Stop building API 36.1 as a separate stable target and make
net11.0-android37the sole default target framework for .NET 11.Changes:
AndroidLatestStableApiLevelto37,AndroidLatestStablePlatformIdto37.0(explicit, since Google shipsplatform-37.0), framework version tov17.0. Unstable properties now reference stable (since they are the same). UpdatedAndroidLatestStableApiLevel2comment example to38.1.isLatestStablefromplatform-36.1toplatform-37.0, removeisPreviewflag36.1to37, add Mono/CoreCLR/NativeAOT runtime pack definitions for37, remove36.1pack definitions$(AndroidLatestStablePlatformId)for@SDK_PLATFORM_VERSION@replacement instead of$(AndroidLatestStableApiLevel)(needed becauseApiLevel=37butPlatformId=37.0)MinorApiLevelFallbackThrowsXA5207to use36.1since37.0 == 37(no meaningful minor version distinction for this test scenario)Note:
AndroidLatestStablePlatformIdis now explicitly set to37.0rather than defaulting to$(AndroidLatestStableApiLevel). This is because Google ships the platform asplatform-37.0(directoryandroid-37.0), but the API level for TFMs andPublicAPIdirectories is just37. Previous APIs (like36and36.1) happened to have identicalApiLevelandPlatformIdvalues.