UWP 应用无法解析 .NET Standard 2.0 程序集

Not*_*ica 3 .net c# serial-port uwp

我有一个 UWP 应用程序,并且在其中一个引用的项目中使用了串行端口。所以我把这个项目变成了 .NET Standard 2.0 项目。UWP 应用已更改为 Target Windows 10 Fall Creators Update (10.0;Build 16299)

根据兼容性图表,它应该有效。但我收到编译错误

Cannot resolve Assembly or Windows Metadata file 'Type universe cannot resolve assembly: netstandard, Version=2.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51.'
Run Code Online (Sandbox Code Playgroud)

我不确定出了什么问题。

man*_*uel 5

就我而言,它是导致此问题的 Microsoft.NETCore.UniversalWindowsPlatform nuget 的过时版本。