I'm following the sample code on MSDN (http://msdn.microsoft.com/en-us/library/windows/apps/windows.applicationmodel.package.id.aspx) to get the current application version in C#
string buildVersion = Package.Current.Id.Version.Build.ToString();
but it gives me the following error:
'Windows.ApplicationModel.Package.Current.Id' threw an exception of type 'System.NotImplementedException'
anyone know how I can get the app version number?
Your Windows Phone 8.1 device should continue to work after July 11, 2017, but there will be no updates after July 11, 2017 (including security updates) and device backup functionality and other backend services will be phased out as described above.
The Windows Phone 8.1 to Windows 10 Mobile upgrade uses an "opt-in" or "seeker" model. An eligible device must "opt-in" to be offered the upgrade. For consumers, the Windows 10 Mobile Upgrade Advisor app is available from the Windows Store to perform the opt-in.
Download the updater tool from this link- https://www.microsoft.com/en-us/download/details.aspx?id=56726 and install it on your PC. Connect the phone to the PC using a USB cable, run the tool and follow the instructions. If my reply is helpful, please mark it so.
That API isn't available: if you look closely at MSDN you'll see that this throws an exception for WP8. You'll have to use the same techniques as for WP7.x.
Namely:
See https://stackoverflow.com/a/5680679/694641, WP7 - get compile/build date from code?.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With