You need DNVM as a starting point. DNVM enables you to acquire a (or multiple) .NET Execution Environment (DNX). DNVM is simply a script, which doesn't depend on .NET. You can install it via a PowerShell command. You can find alternate DNVM install instructions at the ASP.NET Home repo.
λ» @powershell -NoProfile -ExecutionPolicy unrestricted -Command "&{$Branch='dev';iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/aspnet/Home/dev/dnvminstall.ps1'))}"
You must close your command-prompt and start a new one in order for the user-wide environment variables to take effect.
You can see the currently installed DNX versions with dnvm list, which will display an empty set of installed runtimes.
λ» dnvm list
It's easy to install the latest .NET Core-based DNX, using the dnvm install command. The -u (or -Unstable) parameter installs latest unstable version.
λ» dnvm install -r coreclr latest -u
This will install the 32-bit version of .NET Core. If you want the 64-bit version, you can specify processor architecture:
C:\coreclr-demo> dnvm install -r coreclr -arch x64 latest -u
You can see the currently installed DNX versions with dnvm list (your display may vary as new versions of the DNX are published):
λ» dnvm list
Active Version Runtime Architecture Location Alias
------ ------- ------- ------------ -------- -----
1.0.0-beta7-12364 coreclr x86 C:\Users\rlander\.dnx\runtimes
1.0.0-beta7-12364 coreclr x64 C:\Users\rlander\.dnx\runtimes
You can choose which of these DNXs you want to use with dnvm use, with similar arguments.
λ» dnvm use -r coreclr -arch x86 1.0.0-beta7-12364
Adding C:\Users\rlander\.dnx\runtimes\dnx-coreclr-win-x86.1.0.0-beta7-12364\bin
to process PATH
λ» dnvm list
Active Version Runtime Architecture Location Alias
------ ------- ------- ------------ -------- -----
* 1.0.0-beta7-12364 coreclr x86 C:\Users\rlander\.dnx\runtimes
1.0.0-beta7-12364 coreclr x64 C:\Users\rlander\.dnx\runtimes
This is an initial attempt to build fsharp.core for the coreclr:
fetch the DotNet buildtools using: .nuget\NuGet.exe restore packages.config -PackagesDirectory packages
To build and pull in the corefx assemblies for nuget build coreclr using this command:
msbuild src\fsharp\FSharp.Core\FSharp.Core.fsproj /p:TargetFramework=coreclr /t:Rebuild /p:RestorePackages=true
otherwise build fsharp.core like this:
msbuild src\fsharp\FSharp.Core\FSharp.Core.fsproj /p:TargetFramework=coreclr
Partially possible to reproduce it on Linux (Ubuntu 14.04 x86_64 with Mono official apt/deb packages):
3.1) Eg.:
3.2) Add the content to /usr/local/stow/msbuild/bin/msbuild
5.1) Bootstrap compiler?
The file exists:
But MSBuild cannot find it:
5.2) Missing bootstrap compiler