【问题标题】:Visual studio report System.Reflection.MissingMetadataException when compile using .net native tool chainVisual Studio 报告 System.Reflection.MissingMetadataException 编译时使用 .net 本机工具链
【发布时间】:2020-08-26 13:05:54
【问题描述】:

我的应用程序构建并成功运行,没有选中选项Compile with .net navite too chain

我检查选项后,vs报告错误。

Exception thrown: 'System.Reflection.MissingMetadataException' in System.Private.Interop.dll
Windows.Foundation.IReference`1<Double>

如何才能成功运行应用程序?

【问题讨论】:

  • 这很有趣,你能分享你的代码或示例来重现这个吗?
  • 我创建了一个新项目,但无法重现。所以这个问题可能与我的项目有关,所以我将取消选中该选项,直到找到解决方案,谢谢。
  • 太好了,如果有任何更新,请在下面发布,如果找到解决方案,请发布您的答案。

标签: visual-studio uwp compiler-errors


【解决方案1】:

最后我发现这是由于名为HN.Controls.ImageEx 的第三方控件所致。我没有引用它,我的项目运行正常。

我正在联系作者处理这个问题。

【讨论】:

    猜你喜欢
    • 2020-11-22
    • 2015-12-13
    • 1970-01-01
    • 2018-08-13
    • 2020-09-19
    • 2018-03-21
    • 1970-01-01
    • 2016-10-29
    • 1970-01-01
    相关资源
    最近更新 更多