Why CurrentApp::AppId take so long in Windows Phone 10?
问题 I have a windows 8 universal project and have a function to get APP ID, The following function works well in Windows Phone 8.1 Platform::Guid appId = Windows::ApplicationModel::Store::CurrentApp::AppId; however, it spent around 40s in Windows Phone 10. From MSDN, only the Metadata is different, May I know is it caused by the metadata? And how to solve it? 回答1: To instead of using AppID , you might use the following code, Windows::ApplicationModel::Package^ package = Windows::ApplicationModel: