Forum Discussion
Versioning my Maui Android App
You should be able to set:
<ApplicationDisplayVersion>1.0</ApplicationDisplayVersion>
or manually set in your androidmanifest.xml
Checkout https://github.com/xamarin/xamarin-android/blob/main/Documentation/guides/OneDotNetSingleProject.md
JamesMontemagno thanks for your answer. By adding the code you suggest in my csproj file gives me errors.
As soon as I remove this code, the errors disappeared.
Manually set inside my AndroidManifest.xml do the trick but I would have liked to adapt my csproj file.
I'm using Visual Studio Professional 2022 - Preview Version 17.1.0 Preview 1.1
- JamesMontemagnoApr 19, 2022MicrosoftIn the most recent release candidate the team added back:
```
<ApplicationDisplayVersion>1.0</ApplicationDisplayVersion>
<ApplicationVersion>1</ApplicationVersion>
```
This will set your versions correct in .NET MAUI- larryjohnsonMay 02, 2022Copper Contributor
JamesMontemagno Thanks. I'm trying to Bump versions in VSTS and getting this error
##[error]unable to find the matched key.
I've enabled the setting that prints the "before" version of the manifest and both android versions are missing, so I'm guessing there is nothing to 'bump'. I have not changed anything significant from the default maui template. Any ideas?