-
Notifications
You must be signed in to change notification settings - Fork 701
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Different behavior of DataTemplateSelector with enabled and disabled trim function #10302
Comments
When trying to run your repro app in release, I get the following error:
Are there any steps I'm missing to run it in release? |
@M-Muluc Disable Trim for Release Mode: (i tested on Release Mode and it is working fine @marcelwgn also Optimizing assemblie error will be fixed by disabling Trim)
or if you dont want to disable trim, you can add a publish profile.
|
@marcelwgn Sorry, gitignore deleted the files in question. I didn't modify them. I added them to the repository just in case. Thanks @ghost1372 for the suggested solutions to the problem, it worked. I'll leave the Issue open for now, as I believe trim should not remove these sections of code since they are used inside the WinUI. If I am wrong, you can close the Issue.
|
Describe the bug
trim removes the code section used in WinUI to modify DataTemplate
Steps to reproduce the bug
code
Expected behavior
Trim function does not delete used code sections.
Screenshots
Debug build:
2025-01-15.180449.mp4
Release build:
2025-01-15.180208.mp4
NuGet package version
None
Windows version
Windows 11 (24H2): Build 26100
Additional context
No response
The text was updated successfully, but these errors were encountered: