Using dotnet build
For .NET projects using
file-based C# .cs apps
or
.slnx project files,
the
dotnet build
command is used to compile the project and its dependencies.
This command is part of the .NET CLI (Command Line Interface) to build .NET applications from the command line.
The complementary
dotnet run
command builds and runs the application in one step.
To create standalone, self-contained
dotnet publish
binary executables cross-compiled for different CPU arches, see CI
example.