dotnet cli command to create the .sln file
Inside top-level folder, write
dotnet new sln
Create the src/Api project
dotnet new webapi -n Api -o src/Api
Create the src/Application project
dotnet new classlib -n Application -o src/Application
What is difference between classlib and webapi ?
classlib contains the core business rules and logic that the Api project will use. Having separate classlib project helps to keep your business logic separate and independent from the web-specific concerns (in webapi project)
https://g.co/gemini/share/0bf3dd00e105
How to use the classlib project’s logic inside webapi project,