如何在Visual Studio 2019 16.8.1中创建.Net 5.0类库项目? [英] How to create .Net 5.0 Class Library project in Visual Studio 2019 16.8.1?

查看:69
本文介绍了如何在Visual Studio 2019 16.8.1中创建.Net 5.0类库项目?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在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类库项目?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆