Building a .NET Core project or solution

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 ...

Get Mastering Visual Studio 2017 now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.