无法创建控制台应用程序目标 .NET 5
Unable to create Console Application target .NET 5
我正在使用 VS 2019 v16.8.1,我可以选择创建 WPF(.NET) 和与 .NET 5 类似的项目,但无法为 .NET 5 创建控制台应用程序目标。
它将在 Visual Studio 16.9 每 .NET 5.0 Announcement
上市
The templates in Visual Studio 16.8 still target .NET Core 3.1, for console, WPF and Windows Forms apps. The ASP.NET templates have been updated to support .NET 5.0. We will update the templates in Visual Studio 16.9 for the remaining templates.
如果有人想这样做,还有另一种方法。
- 创建 .NET Core 控制台应用程序项目。
- 然后将目标框架更改为.NET 5
打开 .csproj 文件并将目标框架更改为 <TargetFramework>net5.0</TargetFramework>
我正在使用 VS 2019 v16.8.1,我可以选择创建 WPF(.NET) 和与 .NET 5 类似的项目,但无法为 .NET 5 创建控制台应用程序目标。
它将在 Visual Studio 16.9 每 .NET 5.0 Announcement
上市The templates in Visual Studio 16.8 still target .NET Core 3.1, for console, WPF and Windows Forms apps. The ASP.NET templates have been updated to support .NET 5.0. We will update the templates in Visual Studio 16.9 for the remaining templates.
如果有人想这样做,还有另一种方法。
- 创建 .NET Core 控制台应用程序项目。
- 然后将目标框架更改为.NET 5
打开 .csproj 文件并将目标框架更改为 <TargetFramework>net5.0</TargetFramework>