如何从 UWP 应用引用 .NET Standard 2.0 class 库?

How can I reference a .NET Standard 2.0 class libary from a UWP app?

因此根据 Microsoft 在 this 文章中的说法:

"With the release of .NET Standard 2.0, we’re now officially deprecating PCLs and you should move your projects to .NET Standard"

太棒了。我喜欢。除了我无法从我的通用 Windows 应用程序引用 .NET Standard 2.0 class 库。怎么会这样?

如果我今天开始一个新的多平台解决方案(涉及 UWP 客户端应用程序),Microsoft 真的希望共享代码必须采用过时的 PCL 形式吗?我在这里遗漏了什么吗?

如果你再仔细读一遍,你会看到这个

Upcoming version of UWP (expected to ship later this year)

所以不,你现在不能,因为它还没有得到支持。

更新:post 刚刚发布,所以基本上您现在可以使用最新的 Visual Studio 2017 15.4.

定位 2.0

https://blogs.msdn.microsoft.com/dotnet/2017/08/25/uwp-net-standard-2-0-preview/