To build a .NET Core project from the command line, you can use the dotnet build command. When you specify it in a directory with multiple projects, a build will be performed for all the projects.
When there is a solution in the directory that has at least one project linked, performing the following command will build all the projects linked in the solution file:
dotnet build
Here's a screenshot of the command execution:
To build a specific project or solution, provide its name or the path to it while executing the build command. Following is the command to build the Demo App project we have created ...