Open jonathanpeppers opened 2 days ago
There's some work towards changing the default SupportedOSPlatformVersion
to the minimum valid value across all of .NET - if that could be tweaked a little bit to say the default SupportedOSPlatformVersion
is a recommended value each individual SDK sets, then that could work for this:
RecommendedSupportedOSPlatformVersion
property, which Android could set to 24
(for iOS we could set it to the minimum we support, unless we have a reason to do otherwise).RecommendedSupportedOSPlatformVersion
is not set, then .NET keeps the same behavior as today (or change the default to the minimum, either way would work).There are a couple of advantages:
SupportedOSPlatformVersion=21
, we'll know it's on purpose, and not by accident.CC @Redth
This seems like a good approach to me. It may also help with Windows' concern over changing implicit behaviour / current defaults. I could see us setting this value in the MAUI SDK for Windows if they were willing to add logic to check for the value and use it if no other explicit value is specified already.
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 templatesSupportedOSPlatformVersion=24
is the defaultSupportedOSPlatformVersion=21
, for exampleSupportedOSPlatformVersion < 24
Steps to Reproduce
Ideally, it would:
dotnet new android
dotnet build
minSdkVersion="24"
in the resulting.apk
Did you find any workaround?
Set
SupportedOSPlatformVersion=24
manually.