Skip to content

Commit 1c991ba

Browse files
authored
Refresh readme (#1593)
1 parent f6f9488 commit 1c991ba

File tree

1 file changed

+17
-50
lines changed

1 file changed

+17
-50
lines changed

README.md

Lines changed: 17 additions & 50 deletions
Original file line numberDiff line numberDiff line change
@@ -1,72 +1,39 @@
1-
# .NET Core Build Scripts
1+
# .NET Core Source-Build
22

3+
[![Build Status](https://dev.azure.com/dnceng/internal/_apis/build/status/dotnet/source-build/source-build-rolling-CI?branchName=release%2F3.1)](https://dev.azure.com/dnceng/internal/_build/latest?definitionId=114&branchName=release%2F3.1)
34
[![Join the chat at https://gitter.im/dotnet/source-build](https://badges.gitter.im/dotnet/source-build.svg)](https://gitter.im/dotnet/source-build?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
45

5-
<!-- Use scripts/generate-readme-table.sh to update table. -->
6-
<!-- Generated table start -->
7-
| OS | *Azure DevOps*<br/>Release |
8-
| -- | :-- |
9-
| CentOS7.1 | [![Build Status](https://dev.azure.com/dnceng/internal/_apis/build/status/dotnet/source-build/source-build-rolling-CI?branchName=release/3.0&jobName=centos71&configuration=centos71%20Production)](https://dev.azure.com/dnceng/internal/_build/latest?definitionId=114&branchName=release/3.0) |
10-
| CentOS7.1 (Online) | [![Build Status](https://dev.azure.com/dnceng/internal/_apis/build/status/dotnet/source-build/source-build-rolling-CI?branchName=release/3.0&jobName=centos71&configuration=centos71%20Online)](https://dev.azure.com/dnceng/internal/_build/latest?definitionId=114&branchName=release/3.0) |
11-
| CentOS7.1 (Offline) | [![Build Status](https://dev.azure.com/dnceng/internal/_apis/build/status/dotnet/source-build/source-build-rolling-CI?branchName=release/3.0&jobName=centos71&configuration=centos71%20Offline)](https://dev.azure.com/dnceng/internal/_build/latest?definitionId=114&branchName=release/3.0) |
12-
| CentOS7.1 (Offline Portable) | [![Build Status](https://dev.azure.com/dnceng/internal/_apis/build/status/dotnet/source-build/source-build-rolling-CI?branchName=release/3.0&jobName=centos71&configuration=centos71%20Offline%20Portable)](https://dev.azure.com/dnceng/internal/_build/latest?definitionId=114&branchName=release/3.0) |
13-
| Debian8.2 | [![Build Status](https://dev.azure.com/dnceng/internal/_apis/build/status/dotnet/source-build/source-build-CI?branchName=release/3.0&jobname=debian82&configuration=debian82%20Production)](https://dev.azure.com/dnceng/internal/_build/latest?definitionId=114&branchName=release/3.0) |
14-
| Debian8.2 (Online) | [![Build Status](https://dev.azure.com/dnceng/internal/_apis/build/status/dotnet/source-build/source-build-CI?branchName=release/3.0&jobname=debian82&configuration=debian82%20Online)](https://dev.azure.com/dnceng/internal/_build/latest?definitionId=114&branchName=release/3.0) |
15-
| Fedora29 | [![Build Status](https://dev.azure.com/dnceng/internal/_apis/build/status/dotnet/source-build/source-build-CI?branchName=release/3.0&jobname=fedora29&configuration=fedora29%20Production)](https://dev.azure.com/dnceng/internal/_build/latest?definitionId=114&branchName=release/3.0) |
16-
| Fedora29 (Online) | [![Build Status](https://dev.azure.com/dnceng/internal/_apis/build/status/dotnet/source-build/source-build-CI?branchName=release/3.0&jobname=fedora29&configuration=fedora29%20Online)](https://dev.azure.com/dnceng/internal/_build/latest?definitionId=114&branchName=release/3.0) |
17-
| Fedora29 (Offline) | [![Build Status](https://dev.azure.com/dnceng/internal/_apis/build/status/dotnet/source-build/source-build-CI?branchName=release/3.0&jobname=fedora29&configuration=fedora29%20Offline)](https://dev.azure.com/dnceng/internal/_build/latest?definitionId=114&branchName=release/3.0) |
18-
| Fedora29 (Offline Portable) | [![Build Status](https://dev.azure.com/dnceng/internal/_apis/build/status/dotnet/source-build/source-build-CI?branchName=release/3.0&jobname=fedora29&configuration=fedora29%20Offline%20Portable)](https://dev.azure.com/dnceng/internal/_build/latest?definitionId=114&branchName=release/3.0) |
19-
| OSX | [![Build Status](https://dev.azure.com/dnceng/internal/_apis/build/status/dotnet/source-build/source-build-rolling-CI?branchName=release/3.0&jobName=OSX)](https://dev.azure.com/dnceng/internal/_build/latest?definitionId=114&branchName=release/3.0) |
20-
| Ubuntu16.04 | [![Build Status](https://dev.azure.com/dnceng/internal/_apis/build/status/dotnet/source-build/source-build-CI?branchName=release/3.0&jobname=ubuntu1604&configuration=ubuntu1604%20Production)](https://dev.azure.com/dnceng/internal/_build/latest?definitionId=114&branchName=release/3.0) |
21-
| Windows | [![Build Status](https://dev.azure.com/dnceng/internal/_apis/build/status/dotnet/source-build/source-build-rolling-CI?branchName=release/3.0&jobName=Windows)](https://dev.azure.com/dnceng/internal/_build/latest?definitionId=114&branchName=release/3.0) |
22-
<!-- Generated table end -->
6+
This repository contains infrastructure for building the .NET Core Runtime and SDK from source. The scripts allow .NET Core package maintainers to comply with common Linux distribution guidelines.
237

24-
This repository contains a set of scripts for building the .NET Core Runtime and SDK from source. The scripts were built to make it easy for anyone to build the .NET Core product.
8+
## Using this repository
259

26-
You can use these scripts to build the .NET Core product for Windows, macOS or Linux. See [Documentation](Documentation) for complete instructions.
10+
The scripts are written for Bash and supported on macOS and Linux. See [Documentation](Documentation) for complete instructions.
2711

28-
## Using the Scripts
29-
30-
The scripts are supported on Windows, macOS and Linux. The scripts are based on PowerShell on Windows and Bash on macOS and Linux. Currently, Windows scripts only build through core-setup and do not build the complete SDK.
31-
32-
If you are building on Windows or OSX, building is possible via Docker. (https://hub.docker.com/r/microsoft/dotnet/)
33-
34-
### Build on Windows
35-
36-
```console
37-
./build.ps1
38-
```
12+
> The source-build repository doesn't currently support Windows. See [source-build#1190](https://github.com/dotnet/source-build/issues/1190).
3913
4014
### Build on Linux or macOS
4115

4216
```console
4317
./build.sh
4418
```
4519

46-
## Script Users
47-
48-
The most common users are expected to be:
49-
50-
* .NET Core contributors.
51-
* Linux distribution maintainers.
52-
* Cloud service developers.
53-
54-
You do not have to build the entire product to contribute to .NET Core. Often, you only need to build a single binary to test a change. There are some scenarios where building the whole product is useful, such as adding and testing a feature that requires changes to multiple repos.
20+
## Goals
5521

56-
## What the Scripts Do
22+
The key goal of this repository is to satisfy the official packaging rules of commonly used Linux distributions, such as [Fedora](https://fedoraproject.org/wiki/Packaging:Guidelines) and [Debian](https://www.debian.org/doc/manuals/maint-guide/build.en.html). Many Linux distributions have similar rules. These rules tend to have two main principles: consistent reproducibility, and source code for everything.
5723

58-
The scripts can be thought of as solving challenges that would otherwise making building the whole product difficult. The following challenges are the primary ones that developers often hit before these scripts were available.
24+
A secondary goal of source-build is to allow .NET Core contributors to build a .NET Core SDK with coordinated changes in multiple repositories. However, the developer experience is significantly better in individual repositories and, if possible, contributors should make and test changes in the target repo, not source-build.
5925

60-
* .NET Core is composed of several repositories that all need to be built.
61-
* The .NET Core SDK generated by the build requires a specific layout in order to correctly function.
62-
* Most of the product is written in managed code and requires the .NET Core SDK to build. This approach is a great use of the product, but presents a boot-strapping problem for the build.
26+
## What does the source-build infrastructure do?
6327

64-
## Goals
28+
Source-build solves common challenges that most developers encounter when trying to build the whole .NET Core SDK from source.
6529

66-
Many Linux distributions have specific rules for official packages. The rules can be summarized as two main rules: source for everything, and consistent reproducibility.
30+
* .NET Core is composed of many repositories that need to be built at a specific combination of commits.
31+
* Each repository's build output needs to flow into the next repository's build.
32+
* By default, most .NET Core repositories download prebuilt binary dependencies from online sources. These are forbidden by typical Linux distribution rules, and interfere with build output flow.
33+
* Nearly all .NET Core repositories require the .NET Core SDK to build. This is a circular dependency, which presents a bootstrapping problem.
6734

68-
A key goal of this repository was to satisfy the official packaging rules of commonly used Linux distributions, such as [Fedora](https://fedoraproject.org/wiki/Packaging:Guidelines) and [Debian](https://www.debian.org/doc/manuals/maint-guide/build.en.html).
35+
The source-build repository contains scripts and build logic to help Linux distribution maintainers address these challenges.
6936

7037
## License
7138

72-
This repo is licensed with [MIT](LICENSE.txt).
39+
This repo is licensed under the [MIT](LICENSE.txt) license.

0 commit comments

Comments
 (0)