1

尝试创建一个 SquirrelPack 目标,但是使用文档似乎对我不起作用:

// line 84 Target "CreateSquirrelPackage" (fun _ -> SquirrelPack (fun p -> {p with WorkingDir = "./tmp"}) "./my.nuget" ) // line 88

输出

build.fsx(86,49): error FS0001: This expression was expected to have type string option but here has type string

有没有人能让 SquirrelPack 在 F#Fake 中工作?

4

1 回答 1

1

WorkingDir 有 typestring option,但你试图让它只是一个string.

这应该有效:

Target "CreateSquirrelPackage" (fun _ ->
    SquirrelPack (fun p -> {p with WorkingDir = Some "./tmp"}) "./my.nuget"
)
于 2015-12-07T17:46:25.343 回答