[英]Is there F# Interactive for Linux on .NET Core, without using Mono?
I'm able to build and run F# projects with .NET Core, but unable to use or see F# Interactive with it. 我能够使用.NET Core构建和运行F#项目,但无法使用或看到F#Interactive。 Is it on the roadmap somewhere?
它在某个地方的路线图上吗?
I'm using Linux Mint 18.3 我正在使用Linux Mint 18.3
dotnet core 3 preview 3 支持 F#interactive作为纯.NET Core应用程序:
dotnet fsi --readline
Yes there is, but it's hidden in a deep directory. 是的,但它隐藏在一个深层目录中。
I have the following script in my $PATH, with name fsi
, to find it and launch it: 我的$ PATH中有以下脚本,名称为
fsi
,可以找到并启动它:
#!/bin/sh
dotnet=/usr/bin/dotnet
fsi=/usr/share/dotnet/sdk/*/FSharp/fsi.exe
if ! [ -f $fsi ] 2>/dev/null; then
echo ERROR Cannot find fsi.exe or more than one is present
exit 2
fi
exec $dotnet $fsi "$@"
Result: 结果:
$ fsi
Microsoft (R) F# Interactive version 10.2.3 for F# 4.5
Copyright (c) Microsoft Corporation. All Rights Reserved.
For help type #help;;
> 1+1;;
val it : int = 2
>
With this, you can uninstall Mono and the old fsharp
package. 有了这个,您可以卸载Mono和旧的
fsharp
软件包。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.