-
Notifications
You must be signed in to change notification settings - Fork 25
.NET Core SDK 1.0 preview2
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 .
None specific to F#, works ootb on all supported os by .NET Core Sdk (win, osx 10.11, ubuntu 14.04, docker, etc).
- VS Code with F# Ionide extension: ok (build/run/intellisense), ko (debug)
- NOTE: the VSCode should be opened after the first
dotnet build(ref ionide/ionide-vscode-fsharp#312 )
- NOTE: the VSCode should be opened after the first
- VS 2015 with .NET Core tools: ok adding an
.xproj(build/run), ko (intellisense/debug) - Notepad and cli: from day 0 all
dotnetsdk commands (restore/new/build/run/pack/publish/test)
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:
The version 1.0.0-preview2-003156 (released on 2016-12-13 ) works correctly
Changes:
- updated all
dotnet newtemplates (web/console/lib/xunittest) - added
dotnet newASP.NET Core template (dotnet new -l fsharp -t web) - added
dotnet newXUnit test library template (dotnet new -l fsharp -t xunittest)
The version 1.0.0-preview2-003131 (released on 2016-09-13 ) version works OOTB
Changes:
- fixed
dotnet newtemplatesconsole/lib`
The 1.0.0-preview2-003121 version (released on 2016-06-27 ).
All commands except dotnet new works correctly.
Known Bugs/Workarounds:
- the
dotnet newhad wrong builtin templates for F#. As workaround these can be replaced by examples/preview2 templates.
- Home
- Status
- FAQ
- Info-for-library-maintainers
- Current Stable (LTS) Version:
- Next Version (WIP):
- Previous Versions: