Adding a library

To add a non-deployable project to your solution, you can use the classlib template from dotnet new --list command

classlib template creates an empty C# library project by default.

Here’s an example:

dotnet new classlib --name MyClassLib --output src/MyClassLib

e.g.
dotnet new classlib --name NeverendingTeaShop.Application --output src/NeverendingTeaShop.Application

Once you’ve created a class library, you’ll need to add it to the solution

dotnet sln [solution-file] add [csproj-file]

e.g.
dotnet sln NeverendingTeaShop.sln add src/NeverendingTeaShop.Application/NeverendingTeaShop.Application.csproj