Skip to content
This repository was archived by the owner on Jan 23, 2023. It is now read-only.

Commit bf5b0ab

Browse files
committed
Merge pull request #2043 from josteink/freebsd-buildinstructions
Update build instructions to include FreeBSD.
2 parents c8028f4 + 3d3dd8b commit bf5b0ab

File tree

5 files changed

+16
-13
lines changed

5 files changed

+16
-13
lines changed

Documentation/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ Coding Guidelines
4545
Building from Source
4646
====================
4747

48-
- [Building on Linux](linux-instructions.md)
48+
- [Building CoreFX on FreeBSD, Linux and OS X](unix-instructions.md)
4949
- [Code Coverage](code-coverage.md)
5050

5151
Other Information

Documentation/developer-guide.md

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,12 @@ Building the repository
88

99
The CoreFX repo can be built from a regular, non-admin command prompt. The build produces multiple managed binaries that make up the CoreFX libraries and the accompanying tests. The repo can be built for the following platforms, using the provided instructions.
1010

11-
| Chip | Windows | Linux | OS X |
12-
| :---- | :-----: | :---: | :--: |
13-
| x64 | ●| ◒| ◒ |
14-
| x86 | ◯| ◯| ◯|
15-
| ARM32 | ◯ | ◯| ◯ |
16-
| | [Instructions](windows-instructions.md) | [Instructions](linux-instructions.md) | |
11+
| Chip | Windows | Linux | OS X | FreeBSD |
12+
| :---- | :-----: | :---: | :--: | :--: |
13+
| x64 | ●| ◒| ◒| ◒|
14+
| x86 | ◯| ◯| ◯| ◯|
15+
| ARM32 | ◯| ◯| ◯| ◯|
16+
| | [Instructions](windows-instructions.md) | [Instructions](unix-instructions.md) | [Instructions](unix-instructions.md) | [Instructions](unix-instructions.md) |
17+
1718

1819
The CoreFX build and test suite is a work in progress, as are the [building and testing instructions](README.md). The .NET Core team and the community are improving Linux and OS X support on a daily basis are and adding more tests for all platforms. See [CoreFX Issues](https://github.com/dotnet/corefx/issues) to find out about specific work items or report issues.

Documentation/linux-instructions.md renamed to Documentation/unix-instructions.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
Building CoreFX on Linux
2-
========================
1+
Building CoreFX on FreeBSD, Linux and OS X
2+
==========================================
33

44
CoreFx can be built on top of current [Mono CI builds](#installing-mono-packages) or a direct [build/install of Mono](http://www.mono-project.com/docs/compiling-mono/). It builds using MSBuild and Roslyn and requires changes that have not yet made it to official released builds.
55

@@ -76,3 +76,5 @@ System.Diagnostics.FileVersionInfo.Tests.csproj does not build on Unix. https://
7676
System.Diagnostics.Debug.Tests does not build on Unix. https://github.com/dotnet/corefx/issues/1609
7777

7878
Mono fails when trying to get custom attributes on CoreFx assemblies. https://bugzilla.xamarin.com/show_bug.cgi?id=29679
79+
80+
Some third party dependencies may incorrectly assume that `bash` is always installed in `/bin/`. This can manifest itself in errors like `corefx/packages/dnx-mono.1.0.0-beta5-11760/bin/dnu: not found`. The simplest way to get around this until fixed upstream is simply making the assumption correct: `sudo ln -s /usr/local/bin/bash /bin/bash`.

Documentation/windows-instructions.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ the core tests for the project. Visual Studio Solution (.sln) files exist for
2121
related groups of libraries. These can be loaded to build, debug and test inside
2222
the Visual Studio IDE.
2323

24-
[Building On Linux](linux-instructions.md)
24+
[Building CoreFX on FreeBSD, Linux and OS X](unix-instructions.md)
2525
## Tests
2626

2727
We use the OSS testing framework [xunit](http://xunit.github.io/)

build.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,12 @@ __referenceassemblyroot=$__monoroot/lib/mono/xbuild-frameworks
2323
__monoversion=$(mono --version | grep "version 4.[1-9]")
2424

2525
if [ $? -ne 0 ]; then
26-
echo "Mono 4.1 or later is required to build corefx. Please see https://github.com/dotnet/corefx/blob/master/Documentation/linux-instructions.md for more details."
26+
echo "Mono 4.1 or later is required to build corefx. Please see https://github.com/dotnet/corefx/blob/master/Documentation/unix-instructions.md for more details."
2727
exit 1
2828
fi
2929

3030
if [ ! -e "$__referenceassemblyroot/.NETPortable" ]; then
31-
echo "PCL reference assemblies not found. Please see https://github.com/dotnet/corefx/blob/master/Documentation/linux-instructions.md for more details."
31+
echo "PCL reference assemblies not found. Please see https://github.com/dotnet/corefx/blob/master/Documentation/unix-instructions.md for more details."
3232
exit 1
3333
fi
3434

@@ -39,7 +39,7 @@ __buildlog=$__scriptpath/msbuild.log
3939
if [ ! -e "$__nugetpath" ]; then
4040
which curl wget > /dev/null 2> /dev/null
4141
if [ $? -ne 0 -a $? -ne 1 ]; then
42-
echo "cURL or wget is required to build corefx. Please see https://github.com/dotnet/corefx/blob/master/Documentation/linux-instructions.md for more details."
42+
echo "cURL or wget is required to build corefx. Please see https://github.com/dotnet/corefx/blob/master/Documentation/unix-instructions.md for more details."
4343
exit 1
4444
fi
4545
echo "Restoring NuGet.exe..."

0 commit comments

Comments
 (0)