Skip to content

Instantly share code, notes, and snippets.

@cloudRoutine
Last active October 18, 2015 20:59
Show Gist options
  • Save cloudRoutine/75fcf0651c740e07aa21 to your computer and use it in GitHub Desktop.
Save cloudRoutine/75fcf0651c740e07aa21 to your computer and use it in GitHub Desktop.

Revisions

  1. cloudRoutine revised this gist Sep 29, 2015. 1 changed file with 0 additions and 2 deletions.
    2 changes: 0 additions & 2 deletions fs-coreclr-build.md
    Original file line number Diff line number Diff line change
    @@ -70,8 +70,6 @@ If you have not added MSBuild to your PATH you add the dir

    C:\Program Files (x86)\MSBuild\14.0\Bin

    The following set of commands will build in `Debug` mode by default.
    If you want to build for `Release` add `/p:Configuration=Release` to the end of the command

    To build and pull in the corefx assemblies for nuget build coreclr using this command:

  2. cloudRoutine revised this gist Sep 29, 2015. 1 changed file with 12 additions and 0 deletions.
    12 changes: 12 additions & 0 deletions fs-coreclr-build.md
    Original file line number Diff line number Diff line change
    @@ -75,12 +75,24 @@ If you want to build for `Release` add `/p:Configuration=Release` to the end of

    To build and pull in the corefx assemblies for nuget build coreclr using this command:

    // For Debug
    λ» msbuild src\fsharp\FSharp.Core\FSharp.Core.fsproj /p:TargetFramework=coreclr /t:Rebuild /p:RestorePackages=true

    // For Release
    λ» msbuild src\fsharp\FSharp.Core\FSharp.Core.fsproj /p:TargetFramework=coreclr /t:Rebuild /p:RestorePackages=true /p:Configuration=Release

    otherwise build fsharp.core like this:

    // For Debug
    λ» msbuild src\fsharp\FSharp.Core\FSharp.Core.fsproj /p:TargetFramework=coreclr

    // For Release
    λ» msbuild src\fsharp\FSharp.Core\FSharp.Core.fsproj /p:TargetFramework=coreclr /p:Configuration=Release

    then build the compiler with the command:

    // For Debug
    λ» msbuild src/fsharp-compiler-build.proj /p:TargetFramework=coreclr /t:Rebuild /p:RestorePackages=true

    // For Release
    λ» msbuild src/fsharp-compiler-build.proj /p:TargetFramework=coreclr /t:Rebuild /p:RestorePackages=true /p:Configuration=Release
  3. cloudRoutine revised this gist Sep 29, 2015. No changes.
  4. cloudRoutine revised this gist Sep 29, 2015. 1 changed file with 0 additions and 1 deletion.
    1 change: 0 additions & 1 deletion fs-coreclr-build.md
    Original file line number Diff line number Diff line change
    @@ -57,7 +57,6 @@ Active Version Runtime Architecture Location Ali
    1.0.0-beta8-15736 coreclr x86 C:\Users\Jared\.dnx\runtimes
    ```

    This is an initial attempt to build fsharp.core for the coreclr:

    Build FSharp for .NET Core
    ==========================
  5. cloudRoutine revised this gist Sep 29, 2015. 1 changed file with 2 additions and 0 deletions.
    2 changes: 2 additions & 0 deletions fs-coreclr-build.md
    Original file line number Diff line number Diff line change
    @@ -2,6 +2,8 @@ Make things easy for yourself and start by running posh as admin

    If you already have dnvm installed remember to run `update-self` if you haven't recently

    Clone and checkout the `coreclr` branch of [Kevin Ransom's Fork of the Visual F# Compiler and Tools](https://github.com/KevinRansom/visualfsharp)

    Installing DNVM
    ===============

  6. cloudRoutine revised this gist Sep 29, 2015. 1 changed file with 3 additions and 0 deletions.
    3 changes: 3 additions & 0 deletions fs-coreclr-build.md
    Original file line number Diff line number Diff line change
    @@ -69,6 +69,9 @@ If you have not added MSBuild to your PATH you add the dir

    C:\Program Files (x86)\MSBuild\14.0\Bin

    The following set of commands will build in `Debug` mode by default.
    If you want to build for `Release` add `/p:Configuration=Release` to the end of the command

    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
  7. cloudRoutine revised this gist Sep 29, 2015. 1 changed file with 4 additions and 2 deletions.
    6 changes: 4 additions & 2 deletions fs-coreclr-build.md
    Original file line number Diff line number Diff line change
    @@ -57,7 +57,7 @@ Active Version Runtime Architecture Location Ali

    This is an initial attempt to build fsharp.core for the coreclr:

    Build FSharp.Core for .NET CoreCLR
    Build FSharp for .NET Core
    ==========================

    While in the directory you've cloned the visualfsharp repo to ( e.g. `C:\Users\Jared\Github\fs-coreclr\visualfsharp` )
    @@ -77,4 +77,6 @@ otherwise build fsharp.core like this:

    λ» msbuild src\fsharp\FSharp.Core\FSharp.Core.fsproj /p:TargetFramework=coreclr


    then build the compiler with the command:

    λ» msbuild src/fsharp-compiler-build.proj /p:TargetFramework=coreclr /t:Rebuild /p:RestorePackages=true
  8. cloudRoutine revised this gist Sep 29, 2015. 1 changed file with 4 additions and 1 deletion.
    5 changes: 4 additions & 1 deletion fs-coreclr-build.md
    Original file line number Diff line number Diff line change
    @@ -1,4 +1,6 @@
    ( run posh as admin )
    Make things easy for yourself and start by running posh as admin

    If you already have dnvm installed remember to run `update-self` if you haven't recently

    Installing DNVM
    ===============
    @@ -15,6 +17,7 @@ You can see the currently installed DNX versions with `dnvm list`, which will di

    λ» dnvm list


    Installing a .NET Core DNX
    ==========================

  9. cloudRoutine revised this gist Sep 29, 2015. 1 changed file with 2 additions and 0 deletions.
    2 changes: 2 additions & 0 deletions fs-coreclr-build.md
    Original file line number Diff line number Diff line change
    @@ -1,3 +1,5 @@
    ( run posh as admin )

    Installing DNVM
    ===============

  10. cloudRoutine revised this gist Sep 29, 2015. 1 changed file with 4 additions and 0 deletions.
    4 changes: 4 additions & 0 deletions fs-coreclr-build.md
    Original file line number Diff line number Diff line change
    @@ -60,6 +60,10 @@ fetch the DotNet buildtools using:

    λ» .nuget\NuGet.exe restore packages.config -PackagesDirectory packages

    If you have not added MSBuild to your PATH you add the dir

    C:\Program Files (x86)\MSBuild\14.0\Bin

    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
  11. cloudRoutine revised this gist Sep 29, 2015. 1 changed file with 1 addition and 0 deletions.
    1 change: 1 addition & 0 deletions fs-coreclr-build.md
    Original file line number Diff line number Diff line change
    @@ -55,6 +55,7 @@ This is an initial attempt to build fsharp.core for the coreclr:
    Build FSharp.Core for .NET CoreCLR
    ==========================

    While in the directory you've cloned the visualfsharp repo to ( e.g. `C:\Users\Jared\Github\fs-coreclr\visualfsharp` )
    fetch the DotNet buildtools using:

    λ» .nuget\NuGet.exe restore packages.config -PackagesDirectory packages
  12. cloudRoutine revised this gist Sep 29, 2015. 1 changed file with 1 addition and 3 deletions.
    4 changes: 1 addition & 3 deletions fs-coreclr-build.md
    Original file line number Diff line number Diff line change
    @@ -56,17 +56,15 @@ Build FSharp.Core for .NET 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


  13. cloudRoutine revised this gist Sep 29, 2015. 1 changed file with 1 addition and 0 deletions.
    1 change: 1 addition & 0 deletions fs-coreclr-build.md
    Original file line number Diff line number Diff line change
    @@ -39,6 +39,7 @@ You can choose which of these DNXs you want to use with `dnvm use`, with similar

    ```
    λ» dnvm use -r coreclr -arch x64 1.0.0-beta8-15736
    Adding C:\Users\Jared\.dnx\runtimes\dnx-coreclr-win-x64.1.0.0-beta8-15736\bin to process PATH
    λ» dnvm list
  14. cloudRoutine revised this gist Sep 29, 2015. 1 changed file with 6 additions and 7 deletions.
    13 changes: 6 additions & 7 deletions fs-coreclr-build.md
    Original file line number Diff line number Diff line change
    @@ -31,23 +31,22 @@ You can see the currently installed DNX versions with `dnvm list` (your display
    ```
    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
    1.0.0-beta8-15736 coreclr x64 C:\Users\Jared\.dnx\runtimes
    1.0.0-beta8-15736 coreclr x86 C:\Users\Jared\.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 use -r coreclr -arch x64 1.0.0-beta8-15736
    Adding C:\Users\Jared\.dnx\runtimes\dnx-coreclr-win-x64.1.0.0-beta8-15736\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
    * 1.0.0-beta8-15736 coreclr x64 C:\Users\Jared\.dnx\runtimes
    1.0.0-beta8-15736 coreclr x86 C:\Users\Jared\.dnx\runtimes
    ```

    This is an initial attempt to build fsharp.core for the coreclr:
  15. cloudRoutine revised this gist Sep 29, 2015. 1 changed file with 22 additions and 20 deletions.
    42 changes: 22 additions & 20 deletions fs-coreclr-build.md
    Original file line number Diff line number Diff line change
    @@ -22,49 +22,51 @@ It's easy to install the latest .NET Core-based DNX, using the `dnvm install` co

    This will install the 32-bit version of .NET Core. If you want the 64-bit version, you can specify processor architecture:

    λ» dnvm install -r coreclr -arch x64 latest -u
    λ» 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
    ------ ------- ------- ------------ -------- -----
    ```
    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
    ```
    λ» 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
    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
    λ» 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:

    Build FSharp.Core for .NET CoreCLR
    ==========================

    fetch the DotNet buildtools using:
    .nuget\NuGet.exe restore packages.config -PackagesDirectory packages
    λ» .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
    ```

    λ» 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
    ```

    λ» msbuild src\fsharp\FSharp.Core\FSharp.Core.fsproj /p:TargetFramework=coreclr


  16. cloudRoutine revised this gist Sep 29, 2015. 1 changed file with 13 additions and 15 deletions.
    28 changes: 13 additions & 15 deletions fs-coreclr-build.md
    Original file line number Diff line number Diff line change
    @@ -22,33 +22,31 @@ It's easy to install the latest .NET Core-based DNX, using the `dnvm install` co

    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
    λ» 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
    ------ ------- ------- ------------ -------- -----

    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 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
    λ» 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

    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:

  17. cloudRoutine revised this gist Sep 29, 2015. 1 changed file with 3 additions and 1 deletion.
    4 changes: 3 additions & 1 deletion fs-coreclr-build.md
    Original file line number Diff line number Diff line change
    @@ -52,7 +52,9 @@ Active Version Runtime Architecture Location Ali

    This is an initial attempt to build fsharp.core for the coreclr:

    In a working F# OSS enlistment:
    Build FSharp.Core for .NET CoreCLR
    ==========================

    fetch the DotNet buildtools using:
    .nuget\NuGet.exe restore packages.config -PackagesDirectory packages

  18. cloudRoutine revised this gist Sep 29, 2015. 1 changed file with 9 additions and 7 deletions.
    16 changes: 9 additions & 7 deletions fs-coreclr-build.md
    Original file line number Diff line number Diff line change
    @@ -1,30 +1,32 @@
    Installing DNVM
    ===============

    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](https://github.com/aspnet/home).
    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](https://github.com/aspnet/home).

    C:\coreclr-demo> @powershell -NoProfile -ExecutionPolicy unrestricted -Command "&{$Branch='dev';iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/aspnet/Home/dev/dnvminstall.ps1'))}"
    λ» @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.

    C:\coreclr-demo> dnvm list
    λ» dnvm list

    Installing a .NET Core DNX
    ==========================

    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.

    C:\coreclr-demo> dnvm install -r coreclr latest -u
    λ» 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):

    C:\coreclr-demo>dnvm list
    λ» dnvm list

    ```
    Active Version Runtime Architecture Location Alias
    @@ -36,11 +38,11 @@ Active Version Runtime Architecture Location Ali
    You can choose which of these DNXs you want to use with `dnvm use`, with similar arguments.

    ```
    C:\coreclr-demo>dnvm use -r coreclr -arch x86 1.0.0-beta7-12364
    λ» 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
    C:\coreclr-demo>dnvm list
    λ» dnvm list
    Active Version Runtime Architecture Location Alias
    ------ ------- ------- ------------ -------- -----
  19. cloudRoutine revised this gist Sep 29, 2015. 1 changed file with 7 additions and 1 deletion.
    8 changes: 7 additions & 1 deletion fs-coreclr-build.md
    Original file line number Diff line number Diff line change
    @@ -55,8 +55,14 @@ 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

    ```
    msbuild src\fsharp\FSharp.Core\FSharp.Core.fsproj /p:TargetFramework=coreclr
    ```

  20. cloudRoutine revised this gist Sep 29, 2015. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion fs-coreclr-build.md
    Original file line number Diff line number Diff line change
    @@ -46,7 +46,7 @@ Active Version Runtime Architecture Location Ali
    ------ ------- ------- ------------ -------- -----
    * 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:

  21. cloudRoutine created this gist Sep 29, 2015.
    62 changes: 62 additions & 0 deletions fs-coreclr-build.md
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,62 @@
    Installing DNVM
    ===============

    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](https://github.com/aspnet/home).

    C:\coreclr-demo> @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.

    C:\coreclr-demo> dnvm list

    Installing a .NET Core DNX
    ==========================

    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.

    C:\coreclr-demo> 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):

    C:\coreclr-demo>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.

    ```
    C:\coreclr-demo>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
    C:\coreclr-demo>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:
    In a working F# OSS enlistment:
    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