I'm starting to experiment with F# and FAKE and Paket. I'm trying to understand how I should manage references to DLLs installed via Paket.
Currently I have something like this in my build.fsx
Target "DeadLetter" (fun _ ->
["MyFile.fs"]
|> FscHelper.compile [
FscHelper.References [ "packages/Suave/lib/net40/Suave.dll" ]
]
|> function _ -> ()
)
There is also an equivalent netstandard1.6
path but my project doesn't compile if use this. I think I hazily understand why this is the case - but I presume that someone else compiling the project might be using Standard .NET and the current configuration would fail for them.
This suggests that hardcoding the path here (albeit relative to the project root) is not the right way to do this.
How should these references be set up in the build script so the project is portable?