« Fsharp » : différence entre les versions

De Banane Atomic
Aller à la navigationAller à la recherche
Ligne 10 : Ligne 10 :
* VScode
* VScode
** Ionide for F# extension
** Ionide for F# extension
== Create launch and tasks ==
# Disable the {{boxx|Ionide for F#}} extension
# Run → Run Without Debugging
# Select environment: .NET 5+ and .NET Core (this create the {{boxx|launch.json}} file)
# Open {{boxx|launch.json}} → Add Configuration → .NET: Launch .NET Core Console App
# Fill target-framework = net6.0 and project-name = myproject
# Run → Run Without Debugging
# Configure Task → Create tasks.json file from template → Select a Task Template: .NET Core

Version du 23 septembre 2022 à 15:50

Command line

Ps.svg
dotnet fsi  # start F# Interactive
dotnet fsi script.fsx  # run script.fsx

dotnet new console -o fsharp1 -lang f#

Dev env

  • VScode
    • Ionide for F# extension

Create launch and tasks

  1. Disable the Ionide for F# extension
  2. Run → Run Without Debugging
  3. Select environment: .NET 5+ and .NET Core (this create the launch.json file)
  4. Open launch.json → Add Configuration → .NET: Launch .NET Core Console App
  5. Fill target-framework = net6.0 and project-name = myproject
  6. Run → Run Without Debugging
  7. Configure Task → Create tasks.json file from template → Select a Task Template: .NET Core