CommunityToolkit / CommunityToolkit/Maui

[BUG] Trim warnings in CommunityToolkit.Maui 11.1.0

Open
#2,527 2 comments 0 reactions 0 assignees View on GitHub
area/core bug unverified
Dominant language
C#
Stars
2.7k
Forks
500
Avg merge
2d 14h
Merged PRs (30d)
7

Description

### Is there an existing issue for this?

- [x] I have searched the existing issues

### Did you read the "Reporting a bug" section on Contributing file?

- [x] I have read the "Reporting a bug" section on Contributing file: https://github.com/CommunityToolkit/Maui/blob/main/CONTRIBUTING.md#reporting-a-bug

### Current Behavior

When publishing an app there are several Trim warnings related to converters.
I can see that the related issue https://github.com/CommunityToolkit/Maui/issues/2447 was closed.

### Expected Behavior

When publishing an app there are no Trim warnings related to converters.

### Steps To Reproduce

1. Download reproduction sample
2. Publish for iOS using `dotnet publish`: `dotnet publish -f net9.0-ios -c Release -p:ArchiveOnBuild=true -p:RuntimeIdentifier=ios-arm64 maui-blank.csproj`
3. The Trim warnings should be generated.
4. Attached the file with all the warnings generated during publish: [build.log](https://github.com/user-attachments/files/18825398/build.log)

### Link to public reproduction project repository

https://github.com/miko1258/CommunityTookit-TrimWarnings-11.1.0

### Environment

```markdown
- .NET MAUI CommunityToolkit: 11.1.0
- OS: MacOS 14.5
- .NET MAUI: 9.0.30
```

### Anything else?

_No response_

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.