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