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: README.md
+21-8Lines changed: 21 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -11,25 +11,35 @@ The samples provided are designed to show some of the features of the new framew
11
11
12
12
These are the current minimum requirements, they do not necesarilly represent our RTM minimum.
13
13
14
-
* Windows 7 or greater, though Core CLR will only work on Windows 8 today. If using Core CLR you will need to be on Windows 8 or above. At RTM the whole stack will support Windows 7+ and Windows Server 2008 R2+.
15
-
* .NET 4.5.1 for hosting in IIS
16
-
* Powershell 4. KVM is a Powershell script that makes use of types that older verisons of Powershell cannot load
14
+
### Windows
15
+
* Windows 7 or greater, though Core CLR will only work on Windows 8 today. If using Core CLR you will need to be on Windows 8 or above. At RTM the whole stack will support Windows 7+ and Windows Server 2008 R2+.
16
+
* .NET 4.5.1 for hosting in IIS
17
+
* Powershell 4. KVM is a Powershell script that makes use of types that older verisons of Powershell cannot load
18
+
19
+
20
+
### OSX/Linux
21
+
* Mono > 3.4.0 - Currently this means compiling mono from source from https://github.com/mono/mono
22
+
* On Linux, you may need to run `mozroots --import` after installing mono
23
+
* bash/zsh and curl
17
24
18
-
19
25
#Getting Started
20
26
21
27
The first thing we need to do is setup the tools required to build and run an application. We will start out by getting the [K Version Manager (KVM)](https://github.com/aspnet/Home/wiki/version-manager)
22
28
23
29
* Clone the repository
24
-
* On the command line execute ```kvmsetup.cmd```
30
+
* On the command line execute
31
+
*```kvmsetup.cmd``` on Windows or
32
+
*```sh kvmsetup.sh && source ~/.kre/kvm/kvm.sh``` on OSX/Linux
25
33
* This command will setup your environment, getting it ready to install a version of the runtime. It adds kvm to your path and puts it in your user profile.
26
34
* Execute ```kvm install 0.1-alpha-build-0421```. This command will download the named version of the KRE and put it on your user profile ready to use. You can get the latest version by running ```kvm upgrade``` but 0421 was the last version explicitly tested. see the [KVM page](https://github.com/aspnet/Home/wiki/version-manager) for more information on KVM.
27
35
* Navigate to samples\ConsoleApp
28
36
* Run ```kpm restore```. This downloads the System.Console package so the app can do Console.WriteLine
29
-
* Run ```K run```
37
+
* Run ```k run```
30
38
* You should see a message saying "Hello World"
31
-
* Type ```SET KRE_TRACE=1```
32
-
* Run ```K run```
39
+
* Type
40
+
*```SET KRE_TRACE=1``` on Windows or
41
+
*```export KRE_TRACE=1``` on OSX/Linux
42
+
* Run ```k run```
33
43
* You should now see compiler output as well as the "Hello World" message
34
44
35
45
```
@@ -84,6 +94,7 @@ If you can do all of the above then everything should be working. You can try ou
84
94
85
95
#Switching to Core CLR
86
96
97
+
87
98
By default when running the applications you are running against Desktop CLR (4.5), you can change that using the KVM command.
88
99
89
100
1. Run ```kvm install 0.1-alpha-build-0421 -svrc50``` This command gets the latest Core CLR version of the k runtime and sets it as your default. The -svrc50 switch tells it to use Core CLR, you can use -svr50 to target desktop again.
@@ -93,6 +104,8 @@ By default when running the applications you are running against Desktop CLR (4.
93
104
94
105
**NOTE: There are going to be parts of the stack that work on Desktop but do not work on Core CLR. This set should get smaller and smaller as time goes on, but it is entirely likely as you use Core CLR you will hit errors that can't be worked around as the Core CLR surface area just does not exist yet.**
95
106
107
+
**NOTE: There is no Core CLR currently on OSX/Linux. There is only a single platform (mono45) and a single architecture (x86).**
108
+
96
109
#Core CLR Packages
97
110
98
111
Currently the BCL is split into some fairly fine grained packages, which was one of the goals of this effort. However, the packages that exist today do not necessarily represent the list of packages that we will end up with. We are still experimenting with what makes sense to be a package and what the experience should be.
0 commit comments