Skip to content

Commit 0e89caa

Browse files
committed
Merge pull request dotnet#6 from dotnet/rich-osx
Update OS X instructions
2 parents e2e0297 + 5e9e1b6 commit 0e89caa

File tree

1 file changed

+24
-14
lines changed

1 file changed

+24
-14
lines changed

Mac-OS-X-instructions.md

Lines changed: 24 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
These instructions will lead you through building CoreCLR and running "Hello World".
1+
These instructions will lead you through building CoreCLR and running "Hello World" on OS X.
22

33
Dependencies
44
============
@@ -17,9 +17,20 @@ Build CoreCLR
1717
2. Build CoreCLR, from the root of the coreclr repo.
1818
- `./build.sh`
1919
- Type `./build.sh -?` to see the build options.
20+
21+
```
22+
Repo successfully built.
23+
Product binaries are available at /Users/richlander/Source/coreclr/binaries/Product/mac.x64.debug
24+
```
25+
2026
3. Check the build output.
2127
- `ls binaries/Product/mac.x64.debug/`
2228
29+
```
30+
corerun libcoreclr.dylib libmscordaccore.dylib
31+
inc libdebug-pal.a libsos.dylib
32+
```
33+
2334
Build mscorlib
2435
==============
2536
@@ -60,17 +71,12 @@ Compile Hello World
6071
Console.WriteLine("Love from CoreCLR.");
6172
}
6273
}
63-
```
64-
65-
2. Compile your program, using on the following options.
66-
- Compile on Windows in Visual Studio, as a Console app.
67-
- Compile on Windows at the command-line with the C# compiler.
68-
- Open up the Developer Command Prompt for VS2013.
69-
- `csc helloworld.cs` where helloworld.cs is the path to the file you created and saved.
70-
- Compile on OS X with the Mono C# compiler.
71-
- Install Mono from the [Mono downloads](http://www.mono-project.com/download/).
72-
- `dmcs -nostdlib -r:mscorlib.dll helloworld.cs`
73-
- Note that the [Roslyn compiler](https://github.com/dotnet/roslyn) will soon be available on Mac OS X.
74+
```
75+
76+
2. Compile on OS X with the Mono C# compiler.
77+
- Install Mono from the [Mono downloads](http://www.mono-project.com/download/).
78+
- `dmcs -nostdlib -r:mscorlib.dll helloworld.cs`
79+
- Note that the [Roslyn compiler](https://github.com/dotnet/roslyn) will soon be available on Mac OS X.
7480
7581
3. Check the build output.
7682
- You should find a helloworld.exe in the appropriate location, given the compilation option you chose.
@@ -85,9 +91,13 @@ CoreCLR use a runner to run programs, unlike the way .NET programs run on Window
8591
2. Run the CoreCLR runner - corerun - to see options.
8692
- `./corerun`
8793
3. Start program.
88-
- `./corerun -c . HelloWorld.exe`
89-
94+
- `./corerun -c . helloworld.exe`
9095
96+
```
97+
Hello, OS X
98+
Love from CoreCLR.
99+
```
91100
101+
Credit to Frank A. Krueger for providing the first published Mac OS X instructions @ [Building and Running .NET’s CoreCLR on OS X](http://praeclarum.org/post/110552954728/building-and-running-nets-coreclr-on-os-x).
92102
93103

0 commit comments

Comments
 (0)