首页 > 解决方案 > 警告 NU1603 Microsoft.NETCore.UniversalWindowsPlatform 6.2.0-preview1-26926-04

问题描述

我有 Windows 10 1809,目标和最小版本都构建 17763

使用 Microsoft.NETCore.UniversalWindowsPlatform v6.2.0-preview1-26926-04 和 Microsoft.UI.XAML v2.1.181025003-prerelease

当我构建时,我看到一个警告

Severity    Code    Description Project File    Line    Suppression State
Warning NU1603  Microsoft.NETCore.UniversalWindowsPlatform 6.2.0-preview1-
26926-04 depends on Microsoft.Net.Native.Compiler (>= 2.2.0-rel-26924-00) 
but Microsoft.Net.Native.Compiler 2.2.0-rel-26924-00 was not found. An 
approximate best match of Microsoft.Net.Native.Compiler 2.2.0-rel-26924-01 
was resolved.

标签: uwp-xaml

解决方案


Microsoft.NETCore.UniversalWindowsPlatform 6.2.0-preview1-26926-04 依赖于 Microsoft.Net.Native.Compiler (>= 2.2.0-rel-26924-00) 但 Microsoft.Net.Native.Compiler 2.2.0-rel-未找到 26924-00。Microsoft.Net.Native.Compiler 2.2.0-rel-26924-01 的近似最佳匹配已解决。

警告信息告诉Microsoft.Net.Native.Compiler 2.2.0-rel-26924-00未找到。最好的匹配是Microsoft.Net.Native.Compiler 2.2.0-rel-26924-01。您可以使用包管理器控制台通过以下命令手动安装它。

Install-Package Microsoft.Net.Native.Compiler -Version 2.2.0-rel-26924-01

推荐阅读