Publishing trimmed caused exception when binding to an ObservableCollection #18901
Labels
difficulty/tbd
Categorizes an issue for which the difficulty level needs to be defined.
kind/bug
Something isn't working
triage/untriaged
Indicates an issue requires triaging or verification
Current behavior
Trimming the release build on publication causes a binding failure on itemcontrols when the datacontext is set on the page.
Typical call stack
Expected behavior
The release build should execute correctly in the same way that the debug build does.
How to reproduce it (as minimally and precisely as possible)
See sample at https://github.com/BrianDT/UnoItemsControlIssue
Workaround
If you have a win-AnyCPU.pubxml Publisg profile file, set PublishTrimmed to false for all build types.
Works on UWP/WinUI
No
Environment
Uno.WinUI / Uno.WinUI.WebAssembly / Uno.WinUI.Skia
NuGet package version(s)
Uno.SDK 5.5.43
Affected platforms
Windows (WinAppSDK)
IDE
Visual Studio 2022
IDE version
17.12.1
Relevant plugins
None
Anything else we need to know?
No response
The text was updated successfully, but these errors were encountered: