Win10开发笔记(一):一些VS2015中可能遇到的问题
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
【推荐】国内首个AI IDE,深度理解中文开发场景,立即下载体验Trae
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步
· Linux系列:如何用 C#调用 C方法造成内存泄露
· AI与.NET技术实操系列(二):开始使用ML.NET
· 记一次.NET内存居高不下排查解决与启示
· 探究高空视频全景AR技术的实现原理
· 理解Rust引用及其生命周期标识(上)
· 阿里最新开源QwQ-32B,效果媲美deepseek-r1满血版,部署成本又又又降低了!
· 单线程的Redis速度为什么快?
· SQL Server 2025 AI相关能力初探
· 展开说说关于C#中ORM框架的用法!
· AI编程工具终极对决:字节Trae VS Cursor,谁才是开发者新宠?