在
我能够使用.NET Core构建和运行F#项目,但无法使用或与之看到F#Interactive。是在路线图上的某个地方吗?
我正在使用Linux Mint 18.3
dotnet fsi --readline
是的,但是它隐藏在一个深目录中。
我在我的$路径和名称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 "$@"
结果:
$ 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
>
这样,您可以卸载单声道和旧的fsharp
软件包。