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

.NET Core SDK 1.0 preview2

Paul Schneider edited this page Jul 3, 2018 · 3 revisions

Use the simpler instructions but add --lang f# argument to dotnet new

NOTE The SDK contains the .net core runtime plus the dotnet sdk with command like dotnet build. That's usually what you want, not .NET Core runtime alone

NOTE The preview2 is the LTS (long term support) with .NET Core 1.0 runtime., but It's a ghost reference (help needed). theses binaries disappeared.

We cannot download anymore binaries/installers for all os from https://www.microsoft.com/net/download/core/#/lts/sdk (ensure the LTS and SDK are checked)

More info, in the tutorial https://docs.microsoft.com/en-us/dotnet/articles/fsharp/tutorials/getting-started/getting-started-command-line

F# works after install, without workarounds on all supported os.

To check version, you can run

dotnet --version

and the output should be 1.0.0-preview2-003156

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

dotnet new --lang fsharp
dotnet restore
dotnet run

To run an ASP.NET Core app, is the same, just use another template

dotnet new --lang fsharp -t web
dotnet restore
dotnet run

To use Visual Studio Code with Ionide with full intellisense,build,run (debug doesnt work) do dotnet build BEFORE opening the VSCode.

dotnet new -l fsharp -t lib
dotnet restore
dotnet build
code .

Known issues

None specific to F#, works ootb on all supported os by .NET Core Sdk (win, osx 10.11, ubuntu 14.04, docker, etc).

IDE Support

  • VS Code with F# Ionide extension: ok (build/run/intellisense), ko (debug)
  • VS 2015 with .NET Core tools: ok adding an .xproj (build/run), ko (intellisense/debug)
  • Notepad and cli: from day 0 all dotnet sdk commands (restore/new/build/run/pack/publish/test)

Notes

The .NET Core Sdk 1.0.0-preview2 has multiple updated released version. Each version is a patch update, so can be safely upgraded.

From newer to older:

1.0.0-preview2-003156

The version 1.0.0-preview2-003156 (released on 2016-12-13 ) works correctly

Changes:

  • updated all dotnet new templates (web/console/lib/xunittest)
  • added dotnet new ASP.NET Core template ( dotnet new -l fsharp -t web )
  • added dotnet new XUnit test library template ( dotnet new -l fsharp -t xunittest )

1.0.0-preview2-003131

The version 1.0.0-preview2-003131 (released on 2016-09-13 ) version works OOTB

Changes:

  • fixed dotnet new templates console/lib`

1.0.0-preview2-003121

The 1.0.0-preview2-003121 version (released on 2016-06-27 ).

All commands except dotnet new works correctly.

Known Bugs/Workarounds: