我们正在使用Fake,我想在Build目标之后运行DotCover。它总是告诉我:
C:\Users\xxxxx\Dev>FAKE\tools\Fake build.fsx
F# Interactive for F# 3.1 (private)
Freely distributed under the Apache 2.0 Open Source License
For help type #help;;
> [Loading C:\Users\xxxxx\Dev\build.fsx]
build.fsx(8,1): error FS0039: The value or constructor 'DotCoverNUnit' is not defined
我简短的“测试”脚本
#r @"FAKE/tools/FakeLib.dll"
open Fake
DotCoverNUnit dotCoverOptions nUnitOptions
出了什么问题?
答案 0 :(得分:1)
您需要打开包含DotCoverNUnit类的命名空间:
open Fake.DotCover