uwp - 警报声明给出错误 UWP 应用程序?

标签 uwp windows-phone

我收到以下错误:

Severity Code Description Project File Line Error Error : DEP0700 : Registration of the app failed. AppxManifest.xml(32,10) 0x80080204: The c93686ac-1599-4433-8cfd-8a1d3e588ac8 package cannot register an alarm extension because it does not have the required lock screen capability. (0x80073cf6) HelloRealWorld

在APPX(Package.appxmanifest)文件中我添加了警报声明,但看不到添加的锁屏功能,我做错了什么吗?

最佳答案

只需执行以下步骤:

  1. 打开 appxmanifest 设计器,在应用程序选项卡上,将锁屏通知更改为“徽章”。

  2. 切换到“视觉 Assets ”选项卡并选择徽章 Logo 并指定日志图像。出于测试目的,只需指定默认包含在项目中的LockScreenLogo.png即可。

这是截图供您引用。

enter image description here

关于uwp - 警报声明给出错误 UWP 应用程序?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/33096622/

相关文章:

c# - 使用MVVM Light和PCL创建UWP应用程序

javascript - 本地 html/css/javascript 元素到 UWP 应用程序中 - 图像不显示

c# - Windows Phone 应用程序和桌面应用程序之间的通信方式

c# - Windows Phone 8 工具包中的 CustomMessageBox 抛出 NullPointerException

silverlight - 使图像控件根据主题反转其颜色

c# - UWP 应用程序中的命名管道

uwp - 为 Windows UWP 签名 appx 文件时出现错误 0x80080209

xaml - PhoneTextBox 中的换行提示

windows-phone-7 - 在 Windows Phone 中打开 PDF 文件

.net - MAUI 和 Uno 平台有什么区别?