问题描述
在Visual Studio 16.8.1的添加新项目窗口中看不到类库(.NET)"选项.如何创建类库(.NET)项目?(不是.Net Core或.Net Framework)
I can not see the Class Library(.NET) option on Add a New Project window in Visual Studio 16.8.1. How can I create a Class Library (.NET) project? (Not .Net Core or .Net Framework)
推荐答案
如果项目模板仍为您提供.NET Core 3.1作为最高选项,并且项目属性选项不允许您使用所需的内容,则为-问题:只需在解决方案资源管理器中右键单击项目,然后选择编辑项目文件",以编辑.csproj,然后您就可以更改目标框架-例如,从
If the project templates are still giving you .NET Core 3.1 as the highest option, and the project properties options aren't allowing what you want - it isn't a problem: simply right-click on the project in Solution Explorer and select "Edit Project File", to edit the .csproj, and you can change the target framework - for example, from
<TargetFramework>netcoreapp3.1</TargetFramework>
到
<TargetFramework>net5.0</TargetFramework>
定位到.NET 5或
<TargetFrameworks>netcoreapp3.1;net5.0</TargetFrameworks>
实现多目标.
这篇关于如何在Visual Studio 2019 16.8.1中创建.Net 5.0类库项目?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!