我曾尝试使用Visual Studio Code运行一个简单的F#脚本.
我今天下载所有最新版本.我在http://ionide.io/安装了所有插件.尽管有漂亮的GIF动画显示它有效,但我无法看到make如何使用Build代码.
我创建了一个.ionide文件:
[Fake] linuxPrefix = "mono" command = "build.cmd" build = "build.fsx"
但是,如何安装假?所以,我是从xamarin做的并安装它.好的,现在我得到build.fsx:
#r "packages/FAKE.4.12.0/tools/FakeLib.dll" // include Fake lib RestorePackages() // Properties let buildDir = "./build/" let testDir = "./test/" let deployDir = "./deploy/" // version info let version = "0.2" // or retrieve from CI server // Targets Target "Clean" (fun _ -> CleanDirs [buildDir; testDir; deployDir] ) Target "fakeBuild" (fun _ -> !! "./*.fsproj" |> MSBuildRelease buildDir "Build" |> Log "AppBuild-Output: " ) Target "Default" (fun _ -> trace "Hello World from FAKE" ) // Dependencies "Clean" ==> "fakeBuild" ==> "Default" // start build RunTargetOrDefault "Default"
运行Fake:Build命令并获取:
No handler found for the command: 'fake.fakeBuild'. Ensure there is an activation event defined, if you are an extension.
而现在迷路了.