2
我在Visual Studio中的終端口口聲聲說 F# Interactive for F# 3.1 (Open Source Edition)
如何在我的Visual Studio代碼中使用F#4的FSI?
我如何告訴Visual Studio來使用FSI爲F#4?
PS:Visual Studio代碼和所有擴展已經更新。
PPS:我使用的是Mac
我在Visual Studio中的終端口口聲聲說 F# Interactive for F# 3.1 (Open Source Edition)
如何在我的Visual Studio代碼中使用F#4的FSI?
我如何告訴Visual Studio來使用FSI爲F#4?
PS:Visual Studio代碼和所有擴展已經更新。
PPS:我使用的是Mac
在終端內VSC
使用默認的shell,因此將皮卡相同的路徑,因此fsharpi
將是一樣的,如果你通過Terminal.app
運行它或iTerm2.app
。
如果你已經安裝了最新的單聲道版本,其將放置在fsharpi
shell腳本:
>which fsharpi
/usr/local/bin/fsharpi
又使用單從fsi.exe
CIL組件來執行:
/Library/Frameworks/Mono.framework/Versions/4.6.0/lib/mono/4.5
單聲道版本4.6.0當前安裝F#Interactive for F#4.1
抓取最新的OS-X單聲道版本here。
運行:
cat `which fsharpi`
礦的回報:
#!/bin/sh
EXEC="exec "
if test x"$1" = x--debug; then
DEBUG=--debug
shift
fi
if test x"$1" = x--gdb; then
shift
EXEC="gdb --eval-command=run --args "
fi
if test x"$1" = 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 "$0") "[email protected]"