如何在Windows Phone 8中获取软件包版本? [英] How to get the package version in Windows Phone 8?
问题描述
我一直在尝试在Windows Phone 8应用程序中获取软件包版本号。
如果我使用以下代码获取 PackageId 我得到一个 System.NotImplementedException :
var package = Windows.ApplicationModel.Package.Current;
PackageId packageId = package.Id;
此处的文档说明这应该适用于Windows Phone 8:
http://msdn.microsoft .com / zh-CN / library / windowsphone / develop / windows.applicationmodel.package.id.aspx
文档错误,有不同的获取方式手机上的版本?
我正在研究这个问题,很快就会回复你。
I have been trying to get the package version number in my Windows Phone 8 application.
If I use the following code to get the PackageId I get a System.NotImplementedException:
var package = Windows.ApplicationModel.Package.Current; PackageId packageId = package.Id;
The documentation here states that this should work on Windows Phone 8:
http://msdn.microsoft.com/en-us/library/windowsphone/develop/windows.applicationmodel.package.id.aspx
Is the documentation wrong and there is a different way to get the version on the phone?
I'm looking into this and will get back to you soon.
这篇关于如何在Windows Phone 8中获取软件包版本?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!