如何将 .NET Core 添加到 Visual Studio 2015 Pro

How to add .NET Core to Visual Studio 2015 Pro

我想在 Visual Studio 2015 Pro 中安装 .NET Core,以实现 Linux 的 Service worker。

当我访问 Microsoft 的官方 download page 时,他们显示的一切都是混乱的,不知道要下载什么。 请参阅下面的屏幕截图

请问如何安装.Net Core?

How to add .NET Core to Visual Studio 2015 Pro

TL;DR:你不能。

.NETCore 3.0(现已停产)和 3.1 仅在 VS 2019 中受支持。

.NET Core 2.2(唯一其他受支持的版本)仅在 VS 2017 和 2019 中受支持。

仅限 Microsoft .NET Core development on Visual Studio 2015 up to .NET Core 1.1, meanwhile .NET Core Worker Service is introduced on .NET Core 3.0. Since the only currently supported .NET Core with Worker Service 是 .NET 3.1,你需要使用 .NET Core 3.1,它只被最新的 VS 2019 支持。所以要么问问你的公司他们是否可以为您提供 VS 2019 Pro 的许可证,如果您符合条件,可以获取 VS 2019 Community,或者以其他方式使用 VS Code。