Skip to content

[.NET 10] invent a "recommended min OS version" for 24 #9527

@jonathanpeppers

Description

@jonathanpeppers

Android framework version

net9.0-android

Affected platform version

any

Description

We would like to bump the minimum Android OS version to 24 (instead of 21), but we need to do it in a non-disruptive way.

I propose something like:

  • SupportedOSPlatformVersion=24 in project templates
  • If blank, SupportedOSPlatformVersion=24 is the default
  • Customers can opt into lower SupportedOSPlatformVersion=21, for example
  • We emit a build warning for SupportedOSPlatformVersion < 24

Steps to Reproduce

Ideally, it would:

  1. dotnet new android
  2. dotnet build
  3. I see minSdkVersion="24" in the resulting .apk

Did you find any workaround?

Set SupportedOSPlatformVersion=24 manually.

Metadata

Metadata

Labels

Area: App+Library BuildIssues when building Library projects or Application projects.enhancementProposed change to current functionality.

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions