Giter Club home page Giter Club logo

source-build's Introduction

.NET Core Build Scripts

Join the chat at https://gitter.im/dotnet/source-build

OS Azure DevOps
Release
CentOS7.1 Build Status
CentOS7.1 (Online) Build Status
CentOS7.1 (Offline) Build Status
CentOS7.1 (Offline Portable) Build Status
Debian8.2 Build Status
Debian8.2 (Online) Build Status
Fedora29 Build Status
Fedora29 (Online) Build Status
Fedora29 (Offline) Build Status
Fedora29 (Offline Portable) Build Status
OSX Build Status
Ubuntu16.04 Build Status
Windows Build Status

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.

You can use these scripts to build the .NET Core product for Windows, macOS or Linux. See Documentation for complete instructions.

Using the Scripts

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.

If you are building on Windows or OSX, building is possible via Docker. (https://hub.docker.com/r/microsoft/dotnet/)

Build on Windows

./build.ps1

Build on Linux or macOS

./build.sh

Script Users

The most common users are expected to be:

  • .NET Core contributors.
  • Linux distribution maintainers.
  • Cloud service developers.

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.

What the Scripts Do

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.

  • .NET Core is composed of several repositories that all need to be built.
  • The .NET Core SDK generated by the build requires a specific layout in order to correctly function.
  • 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.

Goals

Many Linux distributions have specific rules for official packages. The rules can be summarized as two main rules: source for everything, and consistent reproducibility.

A key goal of this repository was to satisfy the official packaging rules of commonly used Linux distributions, such as Fedora and Debian.

License

This repo is licensed with MIT.

source-build's People

Contributors

dagood avatar crummel avatar ellismg avatar dseefeld avatar weshaggard avatar eerhardt avatar karajas avatar chcosta avatar dotnet-bot avatar dotnet-maestro-bot avatar safern avatar dotnet-maestro[bot] avatar janvorli avatar nguerrera avatar omajid avatar adaggarwal avatar jaredpar avatar am11 avatar brettfo avatar leecow avatar sdmaclea avatar tannergooding avatar tmds avatar wfurt avatar gitter-badger avatar sunandabalu avatar sergiusens avatar richlander avatar regisbsb avatar nkolev92 avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.