认证失败:程序集具有非空清单资源表



我看到认证失败...

General metadata correctness
Error Found: The general metadata correctness test detected the following errors:
The assembly NotificationsVisualizerLibrary in file C:Program Fileswindowsapps58300windowsnotifications.notificationsvisualizer_5.0.0.0_x64__8rkfj2ay7vd1wNotificationsVisualizerLibrary.winmd has a non-empty manifest resources table. Every Windows Runtime assembly must have an empty manifest resources table.
Impact if not fixed: Microsoft store doesn't allow apps that don't pass Windows Runtime Metadata Validation.
How to fix: Please ensure that the compiler you are using to generate your Windows Runtime types is up to date with with the Windows Runtime specifications.

它似乎抱怨我的项目(通知可视化器库(中的 .winmd 运行时库,而不是主要的 C# UWP 项目。

事实证明,发生这种情况的原因是因为我向我的 WinMD 项目添加了一个嵌入式资源文件。

我通过解压缩编译的 appx 然后打开它用记事本抱怨的库的 .winmd 文件,然后向下滚动直到我从嵌入的资源文件中看到熟悉的文本来发现这一点。

删除嵌入的资源解决了问题。

最新更新