Forum Discussion
Bronzato
Nov 30, 2021Copper Contributor
Versioning my Maui Android App
Previously the way to define version code for Android in Maui .csproj file was like this: <!-- Versions -->
<ApplicationVersion>3.1.2</ApplicationVersion>
<AndroidVersionCode>3</AndroidVer...
Bronzato
Dec 04, 2021Copper Contributor
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
JamesMontemagno
Apr 19, 2022Microsoft
In 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
```
<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?