dotnet build

The dotnet command that compiles a project or solution and its dependencies into assemblies.

In more detail

It restores packages first unless told not to, then asks MSBuild to compile. Build the whole solution in continuous integration so a broken test project cannot hide behind a green application build. The -warnaserror switch turns every warning into an error for that build.

Examples

dotnet build
dotnet build -warnaserror

Related terms

Taught in

References