dotnet / maui

.NET MAUI is the .NET Multi-platform App UI, a framework for building native device applications spanning mobile, tablet, and desktop.
https://dot.net/maui
MIT License
22.26k stars 1.76k forks source link

Application display version not updating on Android #25755

Closed ganikapudisham closed 1 week ago

ganikapudisham commented 1 week ago

Description

Image

AppInfo.Current.Version.ToString() or AppInfo.Current.VersionString value not reflecting when debugging on physical mobile device for android. It always displays '0.0'.

Similar issue is mentioned here -> https://github.com/dotnet/maui/issues/20000

Steps to Reproduce

Execute the code (Public repo) in debug mode. You will land on the login page. Apply breakpoint In the loginViewModel.cs on line no 203. var localV = AppInfo.Current.Version.ToString();

AppInfo.Current.Version.ToString(); returns "0.0" instead of "1.0.1"

Link to public reproduction project repository

https://github.com/ganikapudisham/maui-matri

Version with bug

8.0.40 SR5

Is this a regression from previous behavior?

Not sure, did not test other versions

Last version that worked well

No response

Affected platforms

Android

Affected platform versions

No response

Did you find any workaround?

In my case ApplicationDisplayVersion was 1.0.1 and VersionName was "Lily".

I changed VersionName to "1.0.1" and now its displayed.

Thank you.

Relevant log output

similar-issues-ai[bot] commented 1 week ago

We've found some similar issues:

If any of the above are duplicates, please consider closing this issue out and adding additional context in the original issue.

Note: You can give me feedback by 👍 or 👎 this comment.

ganikapudisham commented 1 week ago

Image

This is not working for version mentioned in the above image and the Version of visual studio is higher than the version mentioned in this issue https://github.com/dotnet/maui/issues/20000

I have provided necessary details to reproduce it on the public repository, please let me know if you need any additional details.

ganikapudisham commented 1 week ago

In my case ApplicationDisplayVersion was 1.0.1 and VersionName was "Lily".

I changed VersionName to "1.0.1" and now its displayed.

Thank you.