Skip to content

Bug Visual Studio 2022 Project Maui Android #27121

@vsfeedback

Description

@vsfeedback

This issue has been moved from a ticket on Developer Community.


Hello, I had a problem with Visual Studio with the Maui project for Android.
In short, everything always worked fine in Debug Mode.
When I published an APK, a fatal error appeared that closed the application.
Later, since the problem was a page when I entered it, I created another one and it started working. I changed the functions until I found the bug.
See:
<Label x:Name=" Rota_Atual" Text =" Rota: 1234" TextColor="Black"/> "space"
<Label x:Name="Rota_Atual" Text =" Rota: 1234" TextColor="Black"/>
note that the correct one is: <Label x:Name="Rota_Atual"...
in the code I'm going to put Rota_Atual.Text = "blablabla...".
besides not showing an error, it worked as Debug.
this character " " previously only appeared in Release and APK time.

I hope this helped, it took me four days to solve it.


Original Comments

Feedback Bot on 1/13/2025, 07:06 PM:

We have directed your feedback to the appropriate engineering team for further evaluation. The team will review the feedback and notify you about the next steps.

Carlos Candido on 1/14/2025, 02:25 AM:

(private comment, text removed)

Metadata

Metadata

Labels

area-xamlXAML, CSS, Triggers, Behaviorss/needs-reproAttach a solution or code which reproduces the issuet/bugSomething isn't working

Type

No type

Projects

Status

Done

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions