代码之家  ›  专栏  ›  技术社区  ›  Quark Soup

Visual Studio 2019坏了!UWP应用程序不会链接到。NET标准库

  •  -1
  • Quark Soup  · 技术社区  · 6 年前

    今天我被迫升级到Visual Studio 16.3.0,因为发布了一些无法使用的Nuget软件包。NET核心2.2。令我恐惧的是,我的客户端UWP应用程序广泛使用了共享。NET标准库出现了大量错误。然后我拿了一个virgin UWP应用程序,试图将其链接到virgin。NET标准库。同样的失败。

    NU1201: Project ClassLibrary1 is not compatible with uap10.0.10586 (UAP,Version=v10.0.10586). Project ClassLibrary1 supports: netstandard2.0 (.NETStandard,Version=v2.0)
    NU1201: Project ClassLibrary1 is not compatible with uap10.0.10586 (UAP,Version=v10.0.10586) / win10-arm. Project ClassLibrary1 supports: netstandard2.0 (.NETStandard,Version=v2.0)
    NU1201: Project ClassLibrary1 is not compatible with uap10.0.10586 (UAP,Version=v10.0.10586) / win10-arm-aot. Project ClassLibrary1 supports: netstandard2.0 (.NETStandard,Version=v2.0)
    NU1201: Project ClassLibrary1 is not compatible with uap10.0.10586 (UAP,Version=v10.0.10586) / win10-arm64-aot. Project ClassLibrary1 supports: netstandard2.0 (.NETStandard,Version=v2.0)
    NU1201: Project ClassLibrary1 is not compatible with uap10.0.10586 (UAP,Version=v10.0.10586) / win10-x64. Project ClassLibrary1 supports: netstandard2.0 (.NETStandard,Version=v2.0)
    NU1201: Project ClassLibrary1 is not compatible with uap10.0.10586 (UAP,Version=v10.0.10586) / win10-x64-aot. Project ClassLibrary1 supports: netstandard2.0 (.NETStandard,Version=v2.0)
    NU1201: Project ClassLibrary1 is not compatible with uap10.0.10586 (UAP,Version=v10.0.10586) / win10-x86. Project ClassLibrary1 supports: netstandard2.0 (.NETStandard,Version=v2.0)
    NU1201: Project ClassLibrary1 is not compatible with uap10.0.10586 (UAP,Version=v10.0.10586) / win10-x86-aot. Project ClassLibrary1 supports: netstandard2.0 (.NETStandard,Version=v2.0)
    NuGet package restore failed. Please see Error List window for detailed warnings and errors.
    

    0 回复  |  直到 6 年前
        1
  •  3
  •   LoLance    6 年前

    根据您收到的错误消息:

    10.0.10586 ,但它与 .net standard 2.0 .

    请看 .NET implementation support .参考 .net标准2.0 图书馆,你的uwp项目应该至少针对 10.0.16299

    enter image description here

    此外,你可能会从中得到帮助 similar issue

    因此,您可以将最低版本更改为至少16299以解决此问题。或者你可以选择参考 .net standard 1.4

    至于你的标题,请看上面的图片,你会发现UWP不支持。目前的净标准。

    推荐文章