You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Mac-OS-X-instructions.md
+24-14Lines changed: 24 additions & 14 deletions
Original file line number
Diff line number
Diff 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.
2
2
3
3
Dependencies
4
4
============
@@ -17,9 +17,20 @@ Build CoreCLR
17
17
2. Build CoreCLR, from the root of the coreclr repo.
18
18
-`./build.sh`
19
19
- 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
+
20
26
3. Check the build output.
21
27
- `ls binaries/Product/mac.x64.debug/`
22
28
29
+
```
30
+
corerun libcoreclr.dylib libmscordaccore.dylib
31
+
inc libdebug-pal.a libsos.dylib
32
+
```
33
+
23
34
Build mscorlib
24
35
==============
25
36
@@ -60,17 +71,12 @@ Compile Hello World
60
71
Console.WriteLine("Love from CoreCLR.");
61
72
}
62
73
}
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.
74
80
75
81
3. Check the build output.
76
82
- 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
85
91
2. Run the CoreCLR runner - corerun - to see options.
86
92
- `./corerun`
87
93
3. Start program.
88
-
- `./corerun -c . HelloWorld.exe`
89
-
94
+
- `./corerun -c . helloworld.exe`
90
95
96
+
```
97
+
Hello, OS X
98
+
Love from CoreCLR.
99
+
```
91
100
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).
0 commit comments