-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
when I release an APP, it can't display binding data properly, but it will display properly when I run it in debug mode. #16414
Comments
@lxq-iang not sure if the same issue but we have the same problem and its difficult to replicate and have a look at We had to set the compile option to none on a particular page .. @StephaneDelcroix @jsuarezruiz is it something that is being looked at? |
@developer9969 Thank you very much, I try to set the compile option to none and this issue was solved. It's awesome, thanks again! |
@lxq-iang glad its solved.. but its very very worrying though as we trust that at release time it should just work as in debug... an acknowledgment would be nice that the issue is investigated... |
This also happens on Android. I have been trying to debug a collectionview that works fine in debug, but it release as soon as the data is populated the application goes away. After spending literally a week on the issue, I found this article and added the XamlComplication attribute set to Skip and my Android app now works in release. There is a very time consuming issue here. |
Running into the same issue. Workaround with skip compileoption did not fix it for me. Can try none, if necessary I will investigate in the sandbox sample. Wonder why it only fails on two points in my app, some assembly optimization consequence? |
For release you got to specify correct datatype, pretty sure that it is used in assembly optimization to optimize. See this snippet for what i mean: What failed on release but didn't matter on debug: The fix: It would be nice though if you get some kind of compile-time hint for this, like a compilation error |
My x:DataType is specified correctly in my XAML file. The datatype is the observableobject with the observableproperty attributes. The only way I have found in two instances I have of an observablecollection used by a collectionview inside a verticalstacklayout (or grid) is to turn off the XamlComplication.
|
I recently had a problem where a page wasn't drawing correctly because I was setting the |
We've added this issue to our backlog, and we will work to address it as time and resources allow. If you have any additional information or questions about this issue, please leave a comment. For additional info about issue management, please read our Triage Process. |
Description
when I release an APP, it can't display binding data properly in collectionview, but it will display properly when I run it in debug mode.
Steps to Reproduce
In debug mode!
In release mode
Link to public reproduction project repository
https://github.com/dotnet/maui/
Version with bug
7.0.49
Last version that worked well
6.0
Affected platforms
Android
Affected platform versions
Android 11 and higher version
Did you find any workaround?
No solution has been found
Relevant log output
The text was updated successfully, but these errors were encountered: