的意思 !! F#中的运算符(.fsx)

时间:2018-02-25 02:00:54

标签: f# f#-fake

我正在查看通过FsLab模板自动生成的FAKE构建脚本。在“let”绑定中的一个字符串前面,!!使用运算符。 !!这是什么意思!!操作

Microsoft Docs F# Symbols and Operator Reference,!!运算符未列出。

这是有问题的代码,!!运营商处于倒数第三行:

#r "./packages/build/FAKE/tools/FakeLib.dll"

open Fake
open System

let buildDir  = "./build/"
let appReferences = !! "/**/*.fsproj"
let dotnetcliVersion = "2.0.2"
let mutable dotnetExePath = "dotnet"

再往下,appReferences标识符的用法如下:

Target "Restore" (fun _ ->
    appReferences
    |> Seq.iter (fun p ->
        let dir = System.IO.Path.GetDirectoryName p
        runDotnet dir "restore"
    )
)

1 个答案:

答案 0 :(得分:2)

它采用文件模式并返回与模式匹配的文件集合。