When I add the example xUnit2 target to my FAKE build file, I'm getting this error:
error FS0001: This expression was expected to have type string option but here has type string
Target Example from FAKE xunit2 documentation
Target "Test" (fun _ ->
!! (testDir @@ "xUnit.Test.*.dll")
|> xUnit2 (fun p -> {p with HtmlOutputPath = (testDir @@ "xunit.html")})
)
The Visual Studio is highlighting the (testDir @@ "xunit.html")
section of the code.
I understand that it's expecting two parameters, but I don't know enough F# yet to figure out how to fix the problem:
Prior to including the xUnit target, my FAKE build was working fine.
I've added open Fake.Testing.XUnit2
to the build file and I get no error with the xUnit2 reference.
Any help would be appreciated.