You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This document describes how to perform a stage 2 source build.
4
+
5
+
## What is a stage 2 build
6
+
7
+
A **stage 2 build** is when you run a source build, then take the SDK and packages produced by that build and use them to rebuild the product.
8
+
Stage 2 builds are essential for validating a source‑built product.
9
+
10
+
It’s common for stage 2 builds to surface issues.
11
+
For example, if a new Roslyn analyzer is included in the SDK, it can introduce new build errors during the stage 2 build.
12
+
These issues must be resolved for the product to be considered **source‑buildable**.
13
+
14
+
The process of using built SDK and artifacts to rebuild the product is often called **bootstrapping**.
15
+
This helps to ensure that the second build was produced using only sources on disk without any external inputs.
16
+
Distribution maintainers use this process to initiate the build process: build once using the Microsoft SDK and artifacts, then rebuild using the resulting SDK and artifacts.
0 commit comments