dotnet-installer/src/Microsoft.DotNet.Tools.Builder
Piotr Puszkiewicz 6b1e11a1c9 Merge pull request #722 from Sridhar-MS/centos-tests
Enable running tests for CentOS
2016-01-06 01:14:04 -08:00
..
BuilderCommandApp.cs Extract build from compile 2015-12-23 17:31:47 -08:00
CompileContext.cs Some PR feedback, cleaning up namespaces. 2016-01-05 01:49:28 -08:00
IncrementalPreconditions.cs Extract build from compile 2015-12-23 17:31:47 -08:00
Microsoft.DotNet.Tools.Builder.xproj Extract build from compile 2015-12-23 17:31:47 -08:00
Program.cs Extract build from compile 2015-12-23 17:31:47 -08:00
project.json Merge pull request #722 from Sridhar-MS/centos-tests 2016-01-06 01:14:04 -08:00
README.md Update README.md 2015-12-29 09:26:19 -08:00

dotnet-build

NAME dotnet-build -- Orchestrates the compilation of a project and all its dependencies.

SYNOPSIS dotnet build[options]

DESCRIPTION

The build verb orchestrates the compilation of a project: it gathers the dependencies of a project and decides which to compile.

Users should invoke the Build verb when they want the entire dependency graph compiled, and Compile when they want only a specific project compiled.

Before any compilation begins, the build verb analyzes the project and its dependencies for incremental safety checks. If all checks clear out, then build proceeds with incremental compilation of the project and its dependencies. Otherwise it falls back to non-incremental compilation. Via a profile flag users can choose to receive additional information on how they can improve their build times.

All the projects in the dependency graph that need compilation must pass the following safety checks in order for the compilation process to be incremental:

  • not use pre / post compile scripts
  • not load compilation tools from PATH (e.g., resgen, compilers)
  • use only known compilers (csc, vbc, fsc)

Please read the documentation on Compile for details on compilation and project structure:

Options

Build inherits all the Compile command line parameters.

In addition Compile's parameters, Build adds the following flag:

--build-profile Prints out the incremental safety checks that users need to address in order for incremental compilation to be automatically turned on.