.net-core - 您可以使用.net core运行F#脚本文件(.fsx)吗?

标签 .net-core f# mono

是否可以使用.net core运行.fsx文件? (等效于Mono上的fsharpi。)

最佳答案

它可以在.NETCore v3.0或更高版本中直接使用:

$ cat hello.fsx
#!/usr/bin/env fsharpi
printfn "hello world"
$ dotnet fsi hello.fsx
hello world
$ dotnet --version
3.0.100

关于.net-core - 您可以使用.net core运行F#脚本文件(.fsx)吗?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/43044999/

相关文章:

c# - 如何在 .NET Core RC2 控制台应用程序(Linux、Debian 8)中使用 System.Data?

.net - Azure 管道 : task PublishBuildArtifacts avoid zip

regex - Vim 语法文件与\zs 不匹配

c# - 如何添加对程序集的引用?

c# - 没有注册类型 'MyType' 的服务

c# - .net core 中的 Func delegate 是如何进行逆变工作的

f# - 使用记录键类型遍历 map 时的 StackOverflow

.net - 点网反射: Calling Invoke on MethodInfo With 'out' Parameter from F#

c# - 在 C# 中使用 mono 或 vim 在 unix 上自动查找必要但缺少的命名空间?

c# - Double.Parse 在德语语言环境中失败