You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[.NET 10] change default value for PublishTrimmed #9526
Android framework version
net9.0-android
Affected platform version
any
Description
Context: #9525
Context: dotnet/runtime#109724
As seen in the above issue, there is currently the expectation in .NET:
PublishTrimmed=trueset for all configurations, it means "I intend to trim this project"illink. For console apps,dotnet builddoesn't trim orillink,dotnet publishdoes trim and runillink.PublishTrimmedUnfortunately, Android doesn't follow this pattern:
PublishTrimmed=falsefor build performance, inner loopPublishTrimmed=trueTo fix this in .NET 10, we should:
PublishTrimmed=truealwaysillinkin Debug mode via other meansSteps to Reproduce
dotnet new androiddotnet build(debug mode)Did you find any workaround?
For the case above you could set
$(_DefaultValueAttributeSupport)as done in #9525.