Я прошёл этот урок , но у меня нет fs c (F Sharp Compiler). Бег dotnet fsc -a MyAssembly.fs
показывает:
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.
Бег ls /usr/local/share/dotnet/sdk/3.0.100/FSharp
показывает:
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
, который имеет fsi.exe
и fsc.exe
. Я полагаю, что это будет означать, что dotnet fsc
будет существовать.
Кроме того, у меня есть моно из этого справочника , поэтому fsharpc
и fsharpi
работают.