Skip to content
This repository has been archived by the owner on Jan 8, 2019. It is now read-only.

.NET Core SDK 2.0.0 preview2

Enrico Sada edited this page Jun 27, 2017 · 7 revisions

This is a preview (a development version) of .NET Core Sdk 2.0.

This is not a stable release

Is probably better to use the stable version 1.0 unless you want to test new bits of .net core 2.0 or sdk 2.0

Links for installation:

NOTE you need the sdk. The runtime binaries/installer doesnt include the sdk, so cannot be used to build projects, just to run already built projects.

F# works after install all supported os of .net core.

To check version, you can run

dotnet --version

and the output should be at least 2.0.0-preview2-006391

An quickstart, to create a console app and run it:

dotnet new console -lang f#
dotnet run

To open in VS Code (require restore, who is done automatically in sdk2.0 after new)

dotnet new console -lang f#
code .

You can do dotnet new -all -lang f# to show all f# templates (plus common)

Notes

The FSharp.NET.Sdk used in sdk 1.0 was deprecated in favor of including the sdk integration needed for F# inside Microsoft.NET.Sdk.

More info in the F# RFC FS-1032 Support for F# in the dotnet sdk

For summary of differences and migration from 1.0, see How to migrate 1.0 projects to 2.0

Known issues

editors who supported sdk 1.0 doesnt work with 2.0

  • For fsharp/FSAutocomplete based extensions (vim, emacs, VSCode with ionide):
    • the FSAutocomplete support was added with fsharp/FsAutoComplete#165
    • Ionide for VS Code support it with version >= 2.27.0
    • Other editors extensions (vim/emacs) need to update FSAutocomplete from upstream, see specific extension repo

IDE Support

  • VS Code with F# Ionide extension: ok (build/run/debug/intellisense) with >= 2.27.0
  • vim: no, ko (intellisense)
  • emacs: no, ko (intellisense)
  • VS On Mac: no
  • VS 2017: no
  • Notepad and cli: from day 0 all dotnet sdk commands, ok (new,restore/build/run/pack/publish/test)