Previously in an XNA based WP7 game I used the following to get the version of a game:
gameVersion = System.Reflection.Assembly.GetExecutingAssembly().FullName.Split(‘=’)[1].Split(‘,’)[0];
When I use the above I get 0.0.0.0 when running the game against the phone directly from Unity, and I get 1.0.0.0 when doing the same from Visual Studio.
I have tried changing every version I can find:
1 - Packaging version under Player Settings for Windows Store app (yes I know this is WP, but there is no equivalent for WP)
2 - Bundle version under Player Settings for iOS / Android, yes still not WP
3 - AssemblyVersion AssemblyFileVersion in AssemblyInfo.cs from Visual Studio
4 - Version under Packaging for WMAppManifest.xml from Visual Studio
None of those change the values I get from the above code.
What is the best / correct way to both set the version and retrieve it at run time for Unity based WP8 game?
Thanks
Mark