There's probably multiple questions here all related. I'm trying to come up with a simple version number update scheme for our 3 mobile apps built from a single xamarin solution.
What I'm looking for is a simple way to keep all these values in sync with one another without having to go around and update them all individually.
- Windows Phone Version should get set to the AssemblyVersion or FileVersion Automatically
- IOS Version Number should be set to same. (not sure what the build number should be)
- Android Version Name should be set to same.
- Android Version Number should auto increment for each release build.
My current setup requires navigating around to 4 different places to manually sync up the version numbers.
- Global Assembly Info
I have a linked file which contains the AssemblyVersion and AssemblyFileVersion that's shared by all PCL and Platform projects in the solution with the following info.
[assembly: AssemblyVersion("2.1.1.*")]
[assembly: AssemblyFileVersion("2.1.1.0")]
- Android
Seperately under the android project, I have to manually update the version name and version number (int)
Version Name: 2.1.1
Version Number: 2
- IOS
Under the iOS Application tab, I've 2 more fields to fill in.
Version Number: 2.1.1
Build Number: 0 //Not sure if I'm using this field correctly.
- Windows Phone
On the "Packaging" tab of the WMAppManifest Property dialog, I have to supply a Version Number as well.
Version Number: 2.1.1.0