I am going through this tutorial but do not have fsc (F Sharp Compiler). Running
dotnet fsc -a MyAssembly.fs
shows:
Could not execute because the specified command or file was not found.
Possible reasons for this include:
* You misspelled a built-in dotnet command.
* You intended to execute a .NET Core program, but dotnet-fsc does not exist.
* You intended to run a global tool, but a dotnet-prefixed executable with this name could not be found on the PATH.
Running ls /usr/local/share/dotnet/sdk/3.0.100/FSharp
shows:
FSharp.Build.dll fsc.exe
FSharp.Compiler.Interactive.Settings.dll fsc.runtimeconfig.json
FSharp.Compiler.Private.dll fsi.deps.json
FSharp.Core.dll fsi.exe
Microsoft.FSharp.NetSdk.props fsi.runtimeconfig.json
Microsoft.FSharp.NetSdk.targets it
Microsoft.FSharp.Overrides.NetSdk.targets ja
Microsoft.FSharp.Targets ko
Microsoft.Portable.FSharp.Targets pl
cs pt-BR
de ru
default.win32manifest tr
es zh-Hans
fr zh-Hant
fsc.deps.json
which has fsi.exe
and fsc.exe
. I would believe this would mean dotnet fsc
would exist.
Additionally, I have mono from this guide so fsharpc
and fsharpi
work.