FAILED 一般元数据正确性测试。在我的包裹上使用 Windows App Certification Kit 时

FAILED General metadata correctness test. When using Windows App Certification Kit on my package

我在我的应用程序中使用 Application Insights。该应用程序运行时没有任何警告或问题,但是当我打包该应用程序并在其上 运行 一个 Windows 应用程序认证套件时,它没有说明:

FAILED General metadata correctness test

•Error Found: The general metadata correctness test detected the following errors:◦The type Microsoft.ApplicationInsights.Extensibility.TelemetryConfiguration referenced by type Microsoft.ApplicationInsights.Extensibility.RuntimeTelemetry.RemoteDependencyModule in file Microsoft.ApplicationInsights.Extensibility.RuntimeTelemetry.winmd was not found. All types referenced in metadata files must be discoverable. ◦The type Microsoft.ApplicationInsights.Extensibility.ISupportConfiguration referenced by type Microsoft.ApplicationInsights.Extensibility.RuntimeTelemetry.RemoteDependencyModule in file Microsoft.ApplicationInsights.Extensibility.RuntimeTelemetry.winmd was not found. All types referenced in metadata files must be discoverable.

有人知道如何解决这个问题吗?

您似乎使用了非常旧的 Application Insights SDK 版本。我猜,但可能是 0.14(你从 VS 2013 得到的版本,这个版本不再更新,因为包被重命名了)。您应该删除该 SDK 版本并尝试新版本:https://www.nuget.org/packages/Microsoft.ApplicationInsights.WindowsApps/ RuntimeTelemetry.winmd 已经不存在了。