.net 在Mac上从命令行运行Dotnet F Sharp编译器
我正在经历这一点,但没有fsc(F夏普编译器)。跑步.net 在Mac上从命令行运行Dotnet F Sharp编译器,.net,macos,f#,.net,Macos,F#,我正在经历这一点,但没有fsc(F夏普编译器)。跑步 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 p
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.
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
运行ls/usr/local/share/dotnet/sdk/3.0.100/FSharp
显示:
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.
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
。我相信这将意味着dotnetfsc
将存在
另外,我从这个sofsharpc
还有
fsharpi
工作。指南有点旧了。本文讨论了我们通常不直接使用fsc.exe
,而是创建一个项目并使用.NET核心CLI(dotnet
)来构建和运行F#项目。这里有一个入门指南,可以帮助您实现这一点
关于
dotnetfsc
的使用,GitHub上有一个关于它的网站。据我所知,fsc
关键字与讨论的内容相反,没有实现。不过,fsi
关键字是。您仍然可以直接使用fsc.exe
。只需调用dotnet/fsc.exe
。如上所述-除了非常特殊的任务或诚实的好奇心外,通常无需直接致电fsc
。嗨,你能澄清你的问题吗?我如何让dotnet fsc
运行?