-
Notifications
You must be signed in to change notification settings - Fork 25
.NET Core SDK preview4
Use the simpler instructions but use --lang fsharp for dotnet new
F# works after install all supported os.
To check version, you can run
dotnet --version
and the output should be 1.0.0-preview4-004233
An quickstart, to create a console app and run it:
dotnet new -l 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 .
Like preview3, this version is msbuild based
- This version is based on
msbuild(version 15.0) so.fsprojfor project file - normal command (
dotnet build,dotnet pack, etc) continue to work, but invoke the msbuild - use
dotnet msbuildto run msbuild directly
dotnet migrate doesnt support F# yet:
- WORKAROUND: see tutorial in How-to-migrate-preview2-projects-to-preview4
using <TargetFrameworks>net451;netcoreapp1.0</TargetFrameworks> the dotnet build/pack fails
- WORKAROUND: pass runtime to build
net451, for example-r win7-x64
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
- ISSUE: https://github.com/dotnet/sdk/issues/335
- WORKAROUND: see issue, if applicable
- 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 2017RC: no
- Notepad and cli: from day 0 all
dotnetsdk 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: