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)
In Visual Studio 2019, I believe it needs to be 16.8+, you can enable the preview feature Show all .NET Core templates in the New project dialog.

Go Tools -> Options -> Environment -> Preview Features -> Show all .NET Core templates in the New project dialog (Requires Restart)
Then close Visual Studio and reopen it. Now from the new project dialog there should be a Class Library with a C# in the tags.

From here, click Next. Fill out where you want it to be made and what to call it as you normally would.

Then click Next again. This will bring you to a new screen that has a drop down for the Target Framework.

Set this to .NET 5.0 and click Create. This creates a .NET 5.0 class library and opens it in the IDE.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With