Visual Studio 2019已损坏!UWP应用程序不会链接到.NET标准2.1库

Visual Studio 2019已损坏!UWP应用程序不会链接到.NET标准2.1库,uwp,.net-standard,Uwp,.net Standard,今天我被迫升级到VisualStudio16.3.0,因为发布了一些无法与.NETCore2.2一起使用的Nuget软件包。令我恐惧的是,我的客户端UWP应用程序大量使用了共享的.NET标准库,错误层出不穷。然后我使用了一个virgin UWP应用程序,并尝试将其链接到virgin.NET标准库。同样的失败 NU1201: Project ClassLibrary1 is not compatible with uap10.0.10586 (UAP,Version=v10.0.10586). P

今天我被迫升级到VisualStudio16.3.0,因为发布了一些无法与.NETCore2.2一起使用的Nuget软件包。令我恐惧的是,我的客户端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.
还有人看到了吗?有没有办法修复它?

根据您收到的错误消息:

您的uwp项目的目标是10.0.10586,但它与.net标准2.0不兼容

请看。要引用.net标准2.0库,您的uwp项目的目标应至少为10.0.16299。见:

此外,您还可以从中获得帮助

因此,您可以将最低版本更改为至少16299以解决此问题。或者,您可以选择引用.net标准1.4项目,而不是2.0版本

对于您的标题,请参见上面的图片,您可以发现UWP目前不支持.net标准。

根据您收到的错误消息:

您的uwp项目的目标是10.0.10586,但它与.net标准2.0不兼容

请看。要引用.net标准2.0库,您的uwp项目的目标应至少为10.0.16299。见:

此外,您还可以从中获得帮助

因此,您可以将最低版本更改为至少16299以解决此问题。或者,您可以选择引用.net标准1.4项目,而不是2.0版本


关于您的标题,请参见上面的图片,您会发现UWP目前不支持.net标准。

。。。你想要什么?你指定的是什么框架版本?就像我说的,维珍。如果您不做任何更改,您将获得现成的.NET标准2.0。创建UWP应用程序并将其链接到.NET标准库时,我没有更改任何设置。UWP的移动速度没有那么快。下一个主要的Win10更新,也许,您仍然希望等待,直到您确定大多数用户实际上已经更新。这需要一段时间,1709秋季创作者版现在是一个安全的赌注。如果依赖项信息是准确的,那么只需使用较旧版本的软件包。可能重复的So。。。你想要什么?你指定的是什么框架版本?就像我说的,维珍。如果您不做任何更改,您将获得现成的.NET标准2.0。创建UWP应用程序并将其链接到.NET标准库时,我没有更改任何设置。UWP的移动速度没有那么快。下一个主要的Win10更新,也许,您仍然希望等待,直到您确定大多数用户实际上已经更新。这需要一段时间,1709秋季创作者版现在是一个安全的赌注。如果依赖项信息是准确的,那么只需使用较旧版本的软件包即可。可能的