-
Notifications
You must be signed in to change notification settings - Fork 25
.NET Core SDK 1.0
Links for installation:
- The sdk installer or binaries (no VS, xplat) https://www.microsoft.com/net/download/core#/sdk
- For all os direct links see the specific download page from .net core download archive
The sdk binaries/installer include both .NET Core runtimes branches, the LTS 1.0.5
and the Current 1.1.2
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.
Use the simpler instructions but add -lang f#
to dotnet new
The Announcement msdn blog post
F# works after install in all OS supported by .NET Core runtime 1.0
It doesnt works (for development as sdk, is ok to target these os as for deploy) on OS supported by .NET Core runtime 1.1 only like Ubuntu 16.10, openSUSE 42.1, Fedora 24 (ref dotnet/netcorecli-fsc#91 issue), see Known issue for partial workaround.
To check version, you can run
dotnet --version
and the output should be 1.0.4
An quickstart, to create a console app and run it:
dotnet new console -lang f#
dotnet restore
dotnet run
To run an ASP.NET Core app, is the same, just use another template
dotnet new mvc -lang f#
dotnet restore
dotnet run
You can do dotnet new -all -lang f#
to show all f# templates (plus common)
To use Visual Studio Code using Ionide, with full intellisense and debug, require the project to be restored (dotnet restore
)
dotnet new lib -lang f#
dotnet restore
code .
To help in converting from project.json
to msbuild based .fsproj
, usually dotnet migrate
is enough, but has some issues with f#, see below for workaround.
Also good this post for information about the equivalent options in each format.
Each version is a patch version and can be safely upgraded
The version 1.0.4
(released on 2017-05-09) works correctly
Changes:
The version 1.0.1
(release on 2017-03-07
)) works correctly
Wiki page 1.0.1 for more info, like changes from 1.0.0-rc4
Use a .net framwork (not core) like <TargetFramework>net451</TargetFramework>
(or in TargetFrameworks) the dotnet build
/pack
fails on osx/unix, instead on windows work
-
WORKAROUND: see issue, if applicable
-
WORKAROUND (with mono installed): set
FrameworkPathOverride
environment variable to use .net framework assemblies installed by monoFind where
.../mono/4.5/mscorlib.dll
is on your machine and setFrameworkPathOverride
as an environment variable-
Easiest if mono is already on your path
export FrameworkPathOverride=$(dirname $(which mono))/../lib/mono/4.5/
-
OSX (assuming mono install with xamarin studio):
export FrameworkPathOverride=/Library/Frameworks/Mono.framework/Versions/4.6.2/lib/mono/4.5/
-
OSX (assuming mono installed with brew):
export FrameworkPathOverride=/usr/local/Cellar/mono/4.6.2.16/lib/mono/4.5/
-
Debian:
export FrameworkPathOverride=/usr/lib/mono/4.5/
You can then build by specifying the target framework and runtime identifier (run will not work):
dotnet build -f net462 --runtime osx.10.11-x64
To know the runtime id, just do
dotnet --info
Or you can set theRuntimeIdentifier
environment variable like so:export RuntimeIdentifier=$(dotnet --info | grep "RID" | awk '{print $2}')
-
Using <DebugType>full</DebugType>
doesnt produce full pdb. no error/warning and no pdb is created.
fsc built for .net core doesnt support that scenario, ref https://github.com/Microsoft/visualfsharp/issues/2565
Use the .NET Core 1.0.4 download for Ubuntu 16.04 instead (works on Ubuntu 16.10). ref dotnet/netcorecli-fsc#91 issue
dotnet migrate
doesnt support F# yet:
- WORKAROUND: see tutorial in How-to-migrate-preview2-projects-to-1.0
- VS Code with F# Ionide ( version >= 2.25.1 ) extension: ok (build/run/intellisense,debug)
- NOTE: the VSCode require a
dotnet restore
- NOTE: the VSCode require a
- vim: yes
- emacs: yes
- VS On Mac: yes
- VS 2017: no
- Notepad and cli: from day 0 all
dotnet
sdk commands, ok (new
,restore
/build
/run
/pack
/publish
/test
), ko (migrate
)
- Home
- Status
- FAQ
- Info-for-library-maintainers
- Current Stable (LTS) Version:
- Next Version (WIP):
- Previous Versions: