Microsoft Build Accelerator
Перейти к файлу
Anirudh Santhiar c1d35c9d2c Upgrade to a newer version of qtest (#803) 2019-08-27 16:02:34 -07:00
.vscode Recommend the BuildXL extension when people look for extensions (#782) 2019-08-21 14:41:03 -07:00
Documentation Update wiki for getting vscode plugin (#783) 2019-08-21 17:41:38 -07:00
Examples Remote telemetry for ContentStoreApp (#503) 2019-06-27 19:24:58 -07:00
Private Remove BondRPC (#758) 2019-08-19 13:13:49 -07:00
Public Various reliability improvements for unhandled exception handler (#754) 2019-08-23 09:32:21 -07:00
Shared New LKG 0.1.0-20190821.8 2019-08-23 04:54:50 +00:00
third_party Initial sync 2019-03-28 15:35:49 -07:00
.editorconfig Initial sync 2019-03-28 15:35:49 -07:00
.gitattributes Initial commit for the sandbox client and server 2018-11-06 15:01:51 -08:00
.gitignore Add MsBuildResolver and CMakeResolver examples (#340) 2019-05-21 10:20:55 -07:00
BuildCache.cmd Initial sync 2019-03-28 15:35:49 -07:00
BuildCacheDefault.json Initial sync 2019-03-28 15:35:49 -07:00
BuildCacheDefaultNetCore.json Initial sync 2019-03-28 15:35:49 -07:00
BuildCacheOverride.json Initial sync 2019-03-28 15:35:49 -07:00
CODEOWNERS Adding Code owners (#133) 2019-04-11 19:23:06 -07:00
CODE_OF_CONDUCT.md Add CODE_OF_CONDUCT.md document (#765) 2019-08-19 16:56:06 -07:00
CONTRIBUTING.md Add CODE_OF_CONDUCT.md document (#765) 2019-08-19 16:56:06 -07:00
CreatePr.cmd Update CreatePr helper for github (#58) 2019-03-29 15:33:57 -07:00
LICENSE Restoring licence file 2019-04-09 16:12:01 -07:00
README.md Minor formatting in ReadMe.md (#399) 2019-06-03 09:31:56 -07:00
RunCheckInTests-Test.cmd Initial sync 2019-03-28 15:35:49 -07:00
RunCheckInTests.cmd Add /ado flag to runcheckintest when building in the lab (#779) 2019-08-21 13:26:26 -07:00
SECURITY.md Add Security.md document (#763) 2019-08-19 15:47:52 -07:00
SlimBuildForMacTests.cmd Initial sync 2019-03-28 15:35:49 -07:00
buddy.cmd Initial sync 2019-03-28 15:35:49 -07:00
bxl.cmd Initial sync 2019-03-28 15:35:49 -07:00
bxl.sh Allow macOS sandbox implementation to be configurable (#785) 2019-08-22 20:17:10 +02:00
cgmanifest.json Initial sync 2019-03-28 15:35:49 -07:00
clean.bat Initial sync 2019-03-28 15:35:49 -07:00
config.dsc XLG Debugger for VsCode (#738) 2019-08-16 15:33:37 -07:00
config.microsoftInternal.dsc Upgrade to a newer version of qtest (#803) 2019-08-27 16:02:34 -07:00
config.nuget.aspNetCore.dsc Update asp.netcore to v2.2.0 for the Build Explorer (#354) 2019-05-22 19:03:26 -07:00
config.nuget.vssdk.dsc Initial sync 2019-03-28 15:35:49 -07:00
domino.cmd Initial sync 2019-03-28 15:35:49 -07:00
drop.cmd Update the VSO Credential provider for nuget to fix authentitation issues downloading drop from internal VSO nuget feed (#113) 2019-04-09 16:02:06 -07:00
dropout.cmd Initial sync 2019-03-28 15:35:49 -07:00
macos.mounts.dsc Initial sync 2019-03-28 15:35:49 -07:00

README.md

Microsoft Build Accelerator

BuildXL Icon

Introduction

Build Accelerator, BuildXL for short, is a build engine originally developed for large internal teams at Microsoft, and owned by the Tools for Software Engineers team, part of the Microsoft One Engineering System internal engineering group. Internally at Microsoft, BuildXL runs 30,000+ builds per day on monorepo codebases up to a half-terabyte in size with a half-million process executions per build, using distribution to thousands of datacenter machines and petabytes of source code, package, and build output caching. Thousands of developers use BuildXL on their desktops for faster builds even on mega-sized codebases.

BuildXL accelerates multiple build languages, including:

  • MSBuild (using new features under development in MSBuild 16 which will ship in future versions of Visual Studio 2019 and the .NET Core SDK)
  • CMake (under development)
  • Its own internal scripting language, DScript, an experimental TypeScript based format used as an intermediate language by a small number of teams inside Microsoft

BuildXL has a command-line interface. There are currently no plans to integrate it into Visual Studio. The project is open source in the spirit of transparency of our engineering system. You may find our technology useful if you face similar issues of scale. Note that BuildXL is not intended as a replacement for MSBuild or to indicate any future direction of build languages from Microsoft.

Documentation

The BuildXL documentation main page is here.

Examples and Demos

See the Examples/ folder for basic project examples. See the Demos page for information about various technical demos like using the process sandboxing code.

Building the Code

Build Status - Azure DevOps Pipelines

Build status

Command Line Build and Test

This repo uses DScript files for its own build. From the root of the enlistment run: bxl.cmd which will:

  1. Download the latest self-host engine release.
  2. Pull all needed packages from NuGet.org and other package sources.
  3. Run a debug build as well as the unit tests locally.
  4. Deploy a runnable bxl.exe to: out\bin\debug\win-x64.

Note you do not need administrator (elevated) privileges for your console window.

If you just want to compile BuildXL without running tests you can use: bxl.cmd -minimal after which you can find the binaries in out\bin\debug\win-x64.

Other build types can be performed as well:

  • bxl -deployConfig release : Retail build
  • bxl /vs : Converts DScript files into MSBuild .proj files and generates a .sln for the project at out\vs\BuildXL\BuildXL.sln

Windows

You should use Windows 10 with BuildXL. You do not need to install Visual Studio to get a working build, but see the section below on using VS with BuildXL for developing in the BuildXL codebase.

macOS

To run BuildXL on macOS you need to install:

  • Microsoft .NET Core SDK for macOS
  • The latest Mono runtime
  • If you want to run and load the sandbox to enable fully observed and cacheable builds, you also have to turn off System Integrity Protection (SIP) on macOS. SIP blocks the installation of the unsigned kernel extension (or Kext) produced by the build.

To start building, go to the root of the repository and run ./bxl.sh --minimal in your preferred terminal. Just like bxl.cmd, this bash script also supports several flags for your convenience.

Using BuildXL With Visual Studio

Because we don't have deep VS integration for BuildXL at this time, you can use bxl /vs which will convert the DScript files into MSBuild .proj files and generates a .sln for the project under out\vs\BuildXL\ with a base filename matching the top-level directory of your enlistment. So for example if your enlistment directory is c:\enlist\BuildXL, the generated solution file will be out\vs\BuildXL\BuildXL.sln.

Contributing

See CONTRIBUTING.