dotnet / android

.NET for Android provides open-source bindings of the Android SDK for use with .NET managed languages such as C#
MIT License
1.93k stars 532 forks source link

[.NET 10] change default value for `PublishTrimmed` #9526

Open jonathanpeppers opened 2 days ago

jonathanpeppers commented 2 days ago

Android framework version

net9.0-android

Affected platform version

any

Description

Context: https://github.com/dotnet/android/pull/9525 Context: https://github.com/dotnet/runtime/issues/109724

As seen in the above issue, there is currently the expectation in .NET:

Unfortunately, Android doesn't follow this pattern:

To fix this in .NET 10, we should:

Steps to Reproduce

  1. dotnet new android
  2. dotnet build (debug mode)
  3. Observe https://github.com/dotnet/runtime/issues/109724

Did you find any workaround?

For the case above you could set $(_DefaultValueAttributeSupport) as done in https://github.com/dotnet/android/pull/9525.