【问题标题】:Microsoft.UI.Xaml compatibility issuesMicrosoft.UI.Xaml 兼容性问题
【发布时间】:2019-10-03 07:19:41
【问题描述】:

我希望我的应用在所有 Windows 10 版本上都兼容,但在周年更新或更高版本时使用流畅的设计。但是,Microsoft.UI.Xaml NuGet 包抛出目标版本错误,我使用 SkipMicrosoftUIXamlCheckTargetPlatformVersion 标记解决了这个错误。但是现在我仍然从 Visual Studio 收到错误,如何跳过?

错误:您的应用程序依赖于框架包 其 TargetPlatformMinVersion 高于您的应用程序 取决于。更改您的应用清单以确保 应用程序依赖项的 TargetPlafromMinVersion 大于或 等于框架的 TargetPlatformMinVersion。 TargetPlatformIdentifier:“Windows.Universal”。应用程序 目标平台版本:“10.0.10240.0”。依赖框架 目标平台版本:'10.0.14393.0'。

【问题讨论】:

    标签: visual-studio uwp nuget nuget-package


    【解决方案1】:

    错误:您的应用程序依赖于一个框架包,该框架包的 TargetPlatformMinVersion 高于您的应用程序所依赖的。

    即使你可以编辑以下错误,但框架包的最低依赖版本是10.0.14393.0。您无法修改以下内容以更改所有 依赖版本。

    <Error 
        Text="Microsoft.UI.Xaml nuget package requires TargetPlatformMinVersion &gt;= 10.0.14393.0 (current project is $(MicrosoftUIXamlTargetPlatformMinCheckValue))"
        Condition="$(MicrosoftUIXamlTargetPlatformMinCheckValue) &lt; 14393" />
    

    来源于官方document

    Microsoft.UI.Xaml 2.1 NuGet 包要求您的项目在构建时具有 TargetPlatformVersion >= 10.0.17763.0 和 TargetPlatformMinVersion >= 10.0.14393.0。

    您应用的用户可以使用以下任何受支持的 Windows 版本: Windows Insider 预览 2019 年 5 月更新 (18362) 2018 年 10 月更新 (17763) 2018 年 4 月更新 (17134) 秋季创作者更新 (16299) 创作者更新 (15063) 周年更新 (14393)

    请将应用的目标迷你版本修改为周年更新(14393)。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2016-08-28
      • 2014-02-12
      • 2011-10-04
      • 2013-03-28
      • 2018-06-02
      • 2012-03-28
      • 2017-03-31
      相关资源
      最近更新 更多