Win10開發者交流群:53078485
一.VS2015部署Win10程序到手機出現“0x80073CFD”錯誤解決方案
在VS2015 RC中創建了Windows Universal程序,部署到手機時發生以下異常導致程序無法部署:
Error: DEP0001 : Unexpected Error: A Prerequisite for an install could not be satisfied. (Exception from HRESULT: 0x80073CFD)
解決方案:
在 Package.appxmanifest, 更改 TargetDeviceFamily:
<TargetDeviceFamily Name="Windows.Universal" MinVersion="10.0.1.0" MaxVersionTested="10.0.1.0" />
MaxVersionTested 值可以適當調到比你當前版本再高一個版本,MinVersion設置10.0.1.0,再部署即可。
二.Enable Developer Mode for windows 10無法開啟開發模式的解決方案
在VS2015 RC新創建程序時提示“Enable Developer Mode for windows 10”,而進入系統設置頁面,只要點擊了“For developers” 后,即會閃退(此窗口會自動關閉)。
系統版本信息為(Windows 10 Pro Insider Preview Build 10074):
解決方案:
通過修改組策略(Group Policy)來開啟開發模式
- 打開CMD命令.
- 運行 Gpedit.msc.
- 前 往 Local Computer Policy > Computer Configuration > Administrative Templates > Windows Components > App Package Deployment
- 將下面的選項修改為enable:
- Allow all trusted apps to install
- Allows development of Windows Store apps and installing them from an integrated development environment (IDE)
5.重啟電腦
三、Windows Universal(Win10)中無法調用HardwareButtons后退鍵的解決方法
在 做Windows Universal開發的時候,發現很多Windows Phone 8.1的api不能調用了,包括獲取手機后退鍵的 HardwareButtons、客戶端設備信息EasClientDeviceInformation等,只需要在VS2015中添 加 Microsoft Mobile Extension SDK for Universal App Platform 引用即可,方法如下圖:
1.在項目中右鍵添加引用
2.在Windows Universal選項卡中選擇拓展,選擇Microsoft Mobile Extension SDK for Universal App Platform,確定即可
Win10開發者交流群:53078485