如何在我的 visual studio 代码中将 FSI 用于 F# 4?
How do I use FSI for F# 4 in my visual studio code?
我 Visual Studio 中的终端一直说
F# Interactive for F# 3.1 (Open Source Edition)
如何告诉 visual studio 将 FSI 用于 F# 4?
PS: Visual studio 代码和所有扩展都已更新。
PPS: 我正在使用 mac
VSC
中的终端正在使用您的默认 shell,因此将选择相同的路径,因此 fsharpi
将与您 运行 相同通过 Terminal.app
或 iTerm2.app
.
如果您安装了最新的 Mono 版本,它将在以下位置放置一个 fsharpi
shell 脚本:
>which fsharpi
/usr/local/bin/fsharpi
它又使用单声道在 fsi.exe
CIL 程序集中执行,来自:
/Library/Frameworks/Mono.framework/Versions/4.6.0/lib/mono/4.5
Mono 版本 4.6.0 当前安装 F# Interactive for F# 4.1
获取最新的 OS-X Mono 版本 here。
运行:
cat `which fsharpi`
我的 returns:
#!/bin/sh
EXEC="exec "
if test x"" = x--debug; then
DEBUG=--debug
shift
fi
if test x"" = x--gdb; then
shift
EXEC="gdb --eval-command=run --args "
fi
if test x"" = x--valgrind; then
shift
EXEC="valgrind $VALGRIND_OPTIONS"
fi
# Beware this line must match the regular expression " (\/.*)\/fsi\.exe" when fsi.exe is fsi.exe.
# That's because the FSharp MonoDevelop addin looks inside the text of this script to determine the installation
# location of the default FSharp install in order to find the FSharp compiler binaries (see
# fsharpbinding/MonoDevelop.FSharpBinding/Services/CompilerLocationUtils.fs). That's a pretty unfortunate
# way of finding those binaries. And really should be changed.
$EXEC /Library/Frameworks/Mono.framework/Versions/4.6.0/bin/mono $DEBUG $MONO_OPTIONS /Library/Frameworks/Mono.framework/Versions/4.6.0/lib/mono/4.5/fsi.exe --exename:$(basename "[=13=]") "$@"
我 Visual Studio 中的终端一直说
F# Interactive for F# 3.1 (Open Source Edition)
如何告诉 visual studio 将 FSI 用于 F# 4?
PS: Visual studio 代码和所有扩展都已更新。
PPS: 我正在使用 mac
VSC
中的终端正在使用您的默认 shell,因此将选择相同的路径,因此 fsharpi
将与您 运行 相同通过 Terminal.app
或 iTerm2.app
.
如果您安装了最新的 Mono 版本,它将在以下位置放置一个 fsharpi
shell 脚本:
>which fsharpi
/usr/local/bin/fsharpi
它又使用单声道在 fsi.exe
CIL 程序集中执行,来自:
/Library/Frameworks/Mono.framework/Versions/4.6.0/lib/mono/4.5
Mono 版本 4.6.0 当前安装 F# Interactive for F# 4.1
获取最新的 OS-X Mono 版本 here。
运行:
cat `which fsharpi`
我的 returns:
#!/bin/sh
EXEC="exec "
if test x"" = x--debug; then
DEBUG=--debug
shift
fi
if test x"" = x--gdb; then
shift
EXEC="gdb --eval-command=run --args "
fi
if test x"" = x--valgrind; then
shift
EXEC="valgrind $VALGRIND_OPTIONS"
fi
# Beware this line must match the regular expression " (\/.*)\/fsi\.exe" when fsi.exe is fsi.exe.
# That's because the FSharp MonoDevelop addin looks inside the text of this script to determine the installation
# location of the default FSharp install in order to find the FSharp compiler binaries (see
# fsharpbinding/MonoDevelop.FSharpBinding/Services/CompilerLocationUtils.fs). That's a pretty unfortunate
# way of finding those binaries. And really should be changed.
$EXEC /Library/Frameworks/Mono.framework/Versions/4.6.0/bin/mono $DEBUG $MONO_OPTIONS /Library/Frameworks/Mono.framework/Versions/4.6.0/lib/mono/4.5/fsi.exe --exename:$(basename "[=13=]") "$@"