Building CoreFX is pretty straightforward. Clone the repo and run the build script.
git clone https://github.com/dotnet/corefx.git
cd corefx
./build.sh./build.sh [managed] [native] [BuildArch] [BuildType] [clean] [verbose] [clangx.y] [platform]
Example:
./build.sh native x64 verbose clang3.9
Options:
managed # optional argument to build the managed code
native # optional argument to build the native code
# The following arguments affect native builds only:
BuildArch # build architecture (x64, x86, arm, arm64)
BuildType # build configuration type (Debug, Release)
clean # optional argument to force a clean build
verbose # optional argument to enable verbose build output
clangx.y # optional argument to build using clang version x.y- bash
- curl (devel)
- icu
- clang
- llvm
- lldb
Note: These instructions have been validated on:
- Ubuntu 15.04, 14.04, and 12.04
- Fedora 22
- OS X 10.10 (Yosemite)
- FreeBSD 10.2
- NetBSD 7.0
- Alpine Linux 3.3
If you see errors along the lines of SendFailure (Error writing headers) you may need to import trusted root certificates:
mozroots --import --syncSystem.Diagnostics.Debug.Tests does not build on Unix. https://github.com/dotnet/corefx/issues/1609