Class 库(.Net Core)”在 visual studio 2017 上不可用

Class Library(.Net Core)" not available on visual studio 2017

在 Visual Studio 2015 年添加新项目时,您将获得 "Class Library(.Net Core)"

这个选项似乎在 VS 2017 中不再可用。

如何获得 "Class Library(.Net Standard)"?

您所要做的就是在安装 VS 2017 时启动 Visual Studio 安装程序 和 select “修改”。

然后选中“.NET Core 和 Docker(预览版)”处的复选框。这将在预览结束后被“.NET Core 和 Docker”取代。

您可以在此处查看说明:VS Dotnet Core Page

Install the .NET Core tools preview workload

Make sure you installed the workload ".NET Core and Docker (Preview)". You can check and install workloads by launching the Visual Studio Installer.